InputMismatchException
java InputMismatchException
Thrown by Scanner.nextInt and similar methods when the next token does not match the expected type.
Thrown by Scanner.nextInt and similar methods when the next token does not match the expected type.