I think I might have made the same mistake. The way Scanner works, is by matching patterns in some stream. When you use nextInt() it will attempt to
find an integer value in the input stream. If it is successful, it will move forward in the stream. If it is not successful then it will not move forward. Thus when you input
words, you remain on the same input until you call the appropriate
Scanner method to match it and proceed.
So add
scan.nextLine(); after the line with your message:
System.out.println("You must enter an integer. Try again.\n");
So you'd have:
catch (InputMismatchException inputMismatchException)
{
System.out.println("You must enter an integer. Try again.\n");
scan.nextLine();
}
This will allow the scanner object to skip the error and move forward in the input stream. By the way, perhaps if would be best to check if n2 is zero before actually doing the division

it works regardless, but it's still an unneeded calculation if there is an error.