Java tutorial
public class Main { public static void main(String[] args) { // cause the program to exit Runtime runTime = Runtime.getRuntime(); runTime.exit(0); } }