Here you can find the source of promptEnterKey()
public static void promptEnterKey()
//package com.java2s; //License from project: Open Source License import java.util.Scanner; public class Main { private static Scanner scanner = new Scanner(System.in); /**/*from w ww. ja va2 s.c om*/ * Pause execution and allow the user to continue by pressing ENTER. */ public static void promptEnterKey() { System.out .println("An Event has occured! Press \"ENTER\" to continue..."); scanner.nextLine(); } }