posted 18 years ago
I now have this code and for some reason it does not do what I want it to do:
It works fine if I press a letter key on the keyboard and the exception if thrown and the request to enter either 1 or 2 is repeated.
However, If i then press, say, 3 i am promted again, but if i then press a letter on the keyboard and press enter, then the user is promted "Please enter an integer", i.e. the next exception (e3) is thrown, rather than the current exception (e2), "Please enter 1 or 2".
What is going on here?
Cheers
[ March 26, 2006: Message edited by: Sam Bluesman ]