This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
You need to look through the information about Java available. I would suggest you start with this part of the Java™ Tutorials. You might need a look at the API for BufferedReader and its related classes.
You will find out the read() method does not do what you think it does. It is not at all suitable for reading text, but takes one character at a time. You may need to push enter before you see any results.