new programmer here.
Just a quick question - as mentioned already in the Title:
How do I output an error message for a non-numeric input ?
Example, person enters a letter for an int classified input - the compiler produces an error of: "Exception in thread "main" java.util.InputMismatchException"
How do I actually make it output an error message within the program itself?
Cause I'm wanting the program to keep looping to request an input again til a specified requirement has been met to exit the program.