// HowToP.java provides a simple program example import java.io.*; class HowToP { public static void main(String[] args) throws IOException { System.out.println("Welcome to the HowToP program"); int count = 3; if (args.length > 0) count = Integer.parseInt(args[0]); BufferedReader keyboard = new BufferedReader( new InputStreamReader(System.in) ); for (int n = count; n > 0; n--) { System.out.println("Countdown at " + n); System.out.println("Press Return to continue"); String ignore = keyboard.readLine(); } System.out.println("Countdown finished"); } }