how to wait for a enter press in java code example
Example 1: java pause program until key pressed
System.in.read()
Example 2: How to do press enter to continue in java
System.out.println("Press enter to continue");
try{System.in.read();}
catch(Exception e){}