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;
...
Type: Posts; User: mikhl
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;
...
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...