GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes Problem w/ Scanner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem w/ Scanner class" Watch "Problem w/ Scanner class" New topic
Author

Problem w/ Scanner class

Cameron MacKenzie
Greenhorn

Joined: Oct 07, 2005
Posts: 1
every time I try to load the Scanner class in eclipse or DrJava I get a message saying "Scanner cannot be resolved to a type" How do i fix this or what am i doing wrong?
[ October 07, 2005: Message edited by: Cameron MacKenzie ]
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Are you importing java.util.*?

If so, is Eclipse set to compile using Java 1.5? (There are preference settings for this.)


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
GeeCON Prague 2014
 
subject: Problem w/ Scanner class