Looking at the scanner class it still doesn't seem obvious to me...

reading java for dummies i did find the following:

Scanner keyboard = new Scanner("System.in");
char reply;
reply =...