Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exiting application

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

may I know what is the code when I wanna to terminate a java application and return to the DOS mode?

Thanks!
 
What I have actually mean is to write a code in teh program to exit from it in the DOS mode...:)

Janet
 
It is
System.exit(int exitcode);
Usually you would use System.exit(0); as a sign of successful end of the program.

Hope that helped.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top