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...
Thanks a lot, I altered my conditional and looping code to the following and it worked:
do
{
System.out.print("Enter integer: ");
System.out.flush();
tempInt=Integer.parseInt(...
Hi all,
I am a newbie to programming and this is my first attempt to write a java program. I calculating the root of a integer that is supplied by the user, this then calls a method that does the...
I am a total newbie to programming and Java. I am studying to be a software tester and would learn a lot more about programming particularly Java including unit testing with JUnit.
Brgds
Sohail