I think the Scanner concept is new for you. I was also new for me when i read your post.
I think the better way to learn is to try to understand the whole concept first, and then read the API as Jesper Young suggest you in another post. This article could be of interest: SCANNING TEXT WITH JAVA.UTIL.SCANNER
SCJP 5.0 | SCWCD 1.4
Joined: Jul 24, 2007
Thanks for your site it really helped me in understanding the concept