Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Scanner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Scanner class" Watch "Scanner class" New topic
Author

Scanner class

sumedha rao
Ranch Hand

Joined: Nov 26, 2010
Posts: 115

The following program is from k and b, pg501 chpt 6....error on line token= s.findLine(args[0]);....why???



scjp1.6,scwcd1.5!!!
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1480
    
    6

The method is findInLine(), not findLine()

You may go through the api doc

http://download.oracle.com/javase/1.5.0/docs/api/java/util/Scanner.html


Swastik
sumedha rao
Ranch Hand

Joined: Nov 26, 2010
Posts: 115

argghh .............i think i need a break from java...acting so stupid these days
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Scanner class