User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







java:lang:system:exit

exit

public static void exit(int status)

exit a programm with a return code

example exit in java

package test;
 
public class Test{
 
    public static void main(String[] args) {
 
 
        System.out.println("Example for exit in java");
        System.exit(1);
        System.out.println("sorry but this is after our exit");
 
 
    }
}

output of exit

  Example for exit in java
  Java Result: 1
  
advertising
java/lang/system/exit.txt · Last modified: 2013/04/10 10:09 by 94.223.12.247

Impressum Datenschutz