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