aspose file tools
The moose likes Beginning Java and the fly likes program termination Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "program termination" Watch "program termination" New topic
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: program termination
 
Similar Threads
using MIDI classes: HF Java
Daemon
Assertion Question
daemon thread
confusing synchronized??