aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 1400
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scanner class
 
Similar Threads
Scanner...K&B p.no:484
Tokenizing
K & B example Problem.
using Scanner class in search
How to add elements from a file into an Array List