A lot of "starter" programs do things the simplest possible way and leave the "Good Stuff" for later.
Yes, parseInt() is what throws the exception.
I think that's what my example illustrated. At...
Type: Posts; User: Zaphod_b
A lot of "starter" programs do things the simplest possible way and leave the "Good Stuff" for later.
Yes, parseInt() is what throws the exception.
I think that's what my example illustrated. At...
I don't think you have necessarily done anything "wrong" in the program. It's just that nextInt() throws an "Input Mismatch" exception if you feed it something that it doesn't perceive to be an...