View Single Post
Old 10-16-2012, 06:23 PM   PM User | #3
Jposemato
New to the CF scene

 
Join Date: Oct 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Jposemato is an unknown quantity at this point
Sorry it took me so long to get back, and thanks for helping, however I don't fully understand.

This: NumberFormatException
I would assume goes by the class start, as my prior experience with exceptions such as "FileNotFoundException" and would start with the throws identifier. This would however send back the error and not resolve the problem.

"generic Exception catch and use instanceof checks to see exactly what it is as well, so you can throw custom exceptions for any and all of the bad checks if desired."

I've never seen this method before, would it be like an if and be like...
Code:
instanceof (NumberFormatException){
//Insert what happens if user error here
}
Just my guess from looking at it. Again, I suck at this stuff lol.

I understand the Do/While part, however I don't understand how to change a variables value by pressing the YES/NO buttons so if you could help with that too thanks ha.

Thank you so much for all the help btw.
Jposemato is offline   Reply With Quote