Winston Gutkowski wrote:
Will Pritchard wrote:Hey forum! I'm not sure if it is allowed to post a homework assignment or not...
. . .
Hope it helps.
Winston
Basically, integer input errors. Let's say the method asks for an integer such as, "Type in a number: " and the user accidentally hits, "5t." An error would then throw and then clear the data to have the user try again.Bear Bibeault wrote:What kind of errors are you talking about? If you mean data entry errors then those are not the type that you'd handle with exceptions, but with normal program control flow.
Campbell Ritchie wrote:Welcome to the Ranch! Have you studied the methods of the well‑known Scanner class? If you use them correctly you can avoid using Exceptions at all.