I'm trying to say if the user does not type in neither total or person, there will be an error and a message will output "please enter 'total' or 'person'. I'm trying to say what they enter has to...
Type: Posts; User: freky8ss
I'm trying to say if the user does not type in neither total or person, there will be an error and a message will output "please enter 'total' or 'person'. I'm trying to say what they enter has to...
C:\Users\Charley\Documents\CSC 110\Programs\Un.java:57: error: '(' expected
if else (input.equals("person")){
^
C:\Users\Charley\Documents\CSC 110\Programs\Un.java:57: error: illegal start of...
<
import java.util.Scanner;
public class Reunion {
public static void main ( String[] args ) {
System.out.println("This program calculates the cost of a class reunion...
<
import java.util.Scanner;
public class Reunion {
public static void main ( String[] args ) {
System.out.println("This program calculates the cost of a class reunion event.");...
Up to the strings, everything is fine. I am VERY new to java. I'm looking to see if I'm heading in the right direction. I would like the user to either enter 'total' or 'person' to get the grand...
Java- two strings that equal separate math functions output when user enters either word?
Up to the strings, everything is fine. I am VERY new to java. I'm looking to see if I'm heading in the right...