That is not an SSCCE. That being said, there are two calls to parseInt - one within your validation, one above. You should make use of printing out variable values (for debugging) and exception stack...
Type: Posts; User: copeg
That is not an SSCCE. That being said, there are two calls to parseInt - one within your validation, one above. You should make use of printing out variable values (for debugging) and exception stack...
In that short clip posted, no. But, in the code you posted in post 5, your variable is called 'StudentID', not 'sudentid'. Post an SSCCE and we can all be on the same page when referring to code.
Please define, "it doesn't work" (to be blunt: that's about as much information to us as us saying to you "then fix it")
Exactly. Is an empty string a parsable integer? No. Validate user input if you expect an integer, or catch the exception.
And please, when posting code, wrap it in the code tags. The forum rules...
Read the API for the methods you are using - it describes why an exception would be thrown.
Integer (Java Platform SE 6)
And for future reference, it help s to place context by posting an SSCCE