![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
System.exit ( 0 ) ; is used to stop JVM in Java. So you are getting correct behaviour. You need to use return statement as if ( condition_to_exit) { if your method returns void then you can just use return; else you will have to return an appopriate value;
Replies: |
Sponsored Links
|