I learned to read line as the following in Java 1.2 so the Scanner class is new to me. :p
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String input = in.readLine();