Am writing a program that requires a few user inputs. The problem is
then the user enters nothing and hits return or say enters a char
when I've asked for an int, the thing crashes.
Being a newbie (using the consolewindow element of java along with
java), I've been typing stuff like the following:
c.out.println("Do you wish to proceed? Y or N)
response =c.input.readString().charAt(0)
response here being declared early on as char response
Fine if a char is entered, but not when an int or just return is hit!