I am trying to determine if the user did not input a correct value without throwing an exception.
I have a String variable, done, which stores the user input and then if it is not storing "done" then it coverts the String into Integer. I got that part.
The question is, how do I determine that what is stored in done is not equal to an integer?
I know thats wrong but it gives you the idea of what i want. anyway to do this?
BTW, list is an ArrayList<Integer>