java quit application

Java
System.exit(n);
Source

Also in Java: