Java 45: Handle InputMismatchException when string is input instead of a number using if-statements