Java System.in press any key to continue
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) { PressAnyKey();/* www . jav a2 s .c om*/ } public static void PressAnyKey() { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Press any key..."); try { input.readLine(); } catch (Exception e) { e.printStackTrace(); } } }