CodingForums.com
>
:: Server side development
>
Java and JSP
> [Java] How to end a program?
PDA
View Full Version :
[Java] How to end a program?
punx
09-30-2005, 05:09 PM
How would you end a program to close it. In vb.net you use "End". Is there a command to terminate a program in Java without hitting enter in the consol till it closes?
Brandoe85
09-30-2005, 05:19 PM
Try:
System.exit(0);
that should do it.
punx
09-30-2005, 05:33 PM
That worked. Thanks :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.