Changing the exception class to a more restricted one won't change the code catching an exception. The more general class will catch all the exceptions.
If the OP is entering is a number followed...
Type: Posts; User: Norm
Changing the exception class to a more restricted one won't change the code catching an exception. The more general class will catch all the exceptions.
If the OP is entering is a number followed...
Can you post the console from when you execute the code that shows what is typed in?
I get a java.util.InputMismatchException when I enter a g.
Also print out the value of s to show what value was...