// An example of the simplest application possible, the "hello world"
System.out.println("Hello world\nHit enter to continue");
// Pausing before the program finishes isn't as simple as you might think.
// For now, just copy the lines below into your program if a pause
// is required...
BufferedReader myIn = new BufferedReader(new InputStreamReader(System.in));
s = myIn.readLine();