How do you keep the console from closing after the program is done in Java?
readLine()
waits until you press a key:
public static void main (String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
in.readLine();
}