| Author |
program termination
|
Dave Kairys
Ranch Hand
Joined: Sep 09, 2005
Posts: 33
|
|
Is there a Java keyword that will terminate a program? I have a loop set up asking the user if they would like to continue. If 'yes' continue, if 'no' terminate program. I have tried 'break', 'end', and 'exit', all with no luck. Thanks, Dave
|
 |
I Wayan Saryada
Ranch Hand
Joined: Feb 05, 2004
Posts: 83
|
|
Hi Dave, You can use System.exit(int status) method to terminate program execution.
|
Website: Learn Java by Examples
|
 |
 |
|
|
subject: program termination
|
|
|