how to pause the console in java code example Example: java pause console try{System.in.read();} catch(Exception e){}