posted 13 years ago
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%|