Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scanner class

 
sumedha rao
Ranch Hand
Posts: 115
Firefox Browser Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following program is from k and b, pg501 chpt 6....error on line token= s.findLine(args[0]);....why???

 
Swastik Dey
Rancher
Posts: 1603
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
sumedha rao
Ranch Hand
Posts: 115
Firefox Browser Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
argghh .............i think i need a break from java...acting so stupid these days
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic