public static void waitForEnter ( String message ) { System . out . println ( message ) ; try { getReader ( ) . readLine ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; //To change body of catch statement use File | Settings | File Templates. } }
Waits for enter with specified message .