This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Now that you know how to set up a PATH, you can download a newer version of Java from the Downloads site. You want the one called Java SE Development Kit (JDK) 6 Update 10, and the corresponding PATH entry will read something like
if you use the default location. Remember it is called development kit, not runtime environment.
Once you have got that working, you will have the Scanner class available.
Joined: Oct 05, 2008
Campbell, I may need your help if I can't figure out how to set the Environment Variable correctly for the new install. If you I do the steps like last time, maybe it'll go smoothly but we'll see...
But here's the bummer.. the JSE 5 docs say since 1.5 and JSE 6 docs say since 1.6.. whom are we to believe?
No they don't. At the very bottom of the page for the 1.6 docs, it says "Since 1.6", but that's part of the description of the "reset()" method, which was added to Scanner in JDK 1.6. Much closer to the top of the page, in the description of the class itself, right after " Whitespace is not significant in the above regular expressions", it says "Since 1.5" on both pages.