1 Note that we have to import java.util.InputMismatchException in order to use the InputMismatchException class.  We are using a while loop to ask the user the same question until the user enters the correct input.