jQuery in Action, 3rd edition
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

Problem w/ Scanner class

Cameron MacKenzie

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

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
I agree. Here's the link: http://aspose.com/file-tools
subject: Problem w/ Scanner class
It's not a secret anymore!