Use a BufferedReader to read characters from the console

http://ideone.com/qYOd8p