how can i end the execution of a java program after selecting an option? code example Example: how to exit a java program System.exit(0);