This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I can suggest, put the try/catch statements in a method, and call that method from the main() method. In this method, include try, catch, and finally, and if invalid inputs, give warning to the user from your catch method, and eventually you'll come to the finally block, so in that block, call the method again, and Check for END(some thing to end the program) input from the user, and if he wants to end, use a force exit from the try block(like System.exit())!
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|