Please don't do this:


catch (InputMismatchException e) { //this is the error we are catching
}

As you are not catching anything. At a minimum, do this:


catch (InputMismatchException e)...