how to start a program when enter is pressed java code example
Example: How to do press enter to continue in java
System.out.println("Press enter to continue");
try{System.in.read();}
catch(Exception e){}
System.out.println("Press enter to continue");
try{System.in.read();}
catch(Exception e){}