Chop some wood while you're in there. ;)
Type: Posts; User: Junky
Chop some wood while you're in there. ;)
Yes there is, the call to nextDouble. The issue with the code is that the if statement handling the negative number is in the catch statement but a negative number will not cause an exception.