Search:

Type: Posts; User: mikhl

Search: Search took 0.08 seconds.

  1. Re: InputMismatchException try catch block not working as expected

    I have fixed it I needed to use keyboard.nextLine() to discard the input that the user previousley entered.

    My new code:


    public int doPubYear()
    {
    boolean done = false;
    ...
  2. InputMismatchException try catch block not working as expected

    Hi people, I'm new here!

    I have decided to write a small program to learn myself Java. i have created a function that should catch a mismatch exception and respond by asking for the data to be...
Results 1 to 2 of 2