// An example of the simplest application possible, the "hello world"
// application.
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));
String s;
s = myIn.readLine();