How do you terminate a program in Java from inside the program? code example Example: how to exit a java program System.exit(0);