I have a question on what\'s going on, whenever I try to compile it it keeps giving me an error like this:
Exception in thread \"main\" java.util.InputMismat
Why is name an integer? int name;
int name;
I suspect you are using alpha characters to input your name...and are getting the exception at this line: name = in.nextInt();
name = in.nextInt();
name should not be an integer. It should be a string.
name
Therefore, string name; and name = in.nextLine();
string name;
name = in.nextLine();