can anybody show me an example of code to input a string from the console window. I can take an argument to the program call as input, but I don't know how to get input once the program has started. I have a book that mentions creating a Scanner object and using it's next() method with System.in to get the next string. I can't get my programs to recognize Scanner though. I'm using the newest j2sdk1.4.2_12. any suggestions?