I just have to make a method that checks if three integers are the same, have the user tell an object to execute this method, and then ask the user for another command. When I put 'c' (it's ONLY this case that does this, I have another case that is logically identical), it will do what it's supposed to but then it will try to take the next input and run it through as a parameter to the method that has already been executed, from what I understand.
something=in.nextLine();
commands=something.charAt(0);
do{
switch(commands){
//Blah blah blah other commands
case 'c':
boolean yes=object.allTheSame(in.nextInt(),in.nextInt(),in.nextInt());
System.out.println(yes);
System.out.println("Please enter a command: ");
something=in.nextLine();
break;
}
commands=something.charAt(0);
}while(commands!='q');