This week's book giveaway is in the OCP forum. We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line! See this thread for details.
what about my question in the code? when you use readLine (); it reads the whole line right? it there a way to get it to only read what the user inputs? i tried read(); but it doesn't seem to work for strings
posted 11 years ago
Look at the Scanner class. Scanner was introduced in 1.5 to make reading easier.