is there a way to terminate programs in java code example Example: how to exit a java program System.exit(0);