I do see your point. If i comment out the if statement in my method and all the throw and try catch codes, I have no problems running the program as long as I feed it with integers, but if I submit...
Type: Posts; User: lupis
I do see your point. If i comment out the if statement in my method and all the throw and try catch codes, I have no problems running the program as long as I feed it with integers, but if I submit...
The point is more of a usability issue, I dont wont the user be presented by a compile time error, I want it gracefully handled. I want the user to be able to pass on whatever and then be presented...
Actually I just want to check that the value passed to this methods argument is a integer at all? If not, I want the method to throw a exception and the the calling method to catch it handle it.
Hi,
I am a newbie and have just managed to make my first java program wokr :-* I am now taking that program further to enable it do some error handling with throw -> try -> catch
I want the...