how to close the application function in java code example Example: java close application System.exit(0);