Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem w/ Scanner class

 
Cameron MacKenzie
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you importing java.util.*?

If so, is Eclipse set to compile using Java 1.5? (There are preference settings for this.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic