This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Right now my program is supposed to allow users of repeat the program over again or allow them to restart if they make an error. My code is as follows:
If the user enters "N", the program terminates, but how can I make the program start over again if the user says "Y"? I've been looking for something similar to a GOTO statement (which I know you should NEVER use), and I've found the throw and switch commands. I'm a bit confused to how both of these commands work, and how I could fit them into my program. Any help would be much appreciated!