Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

'Cannot find Symbol' when using Scanner  RSS feed

 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using NetBeans 5.5 and I keep getting an error that "Cannot find Symbol" on this line of code :


In Eclipse the same code has no error, what is going on here. Do I have to update Netbeans or something?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jay,
Scanner was introduced in Java 5. Is your NetBeans set to compile Java 5 code?
 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeanne Boyarsky:
Jay,
Scanner was introduced in Java 5. Is your NetBeans set to compile Java 5 code?


It's the latest version of NetBeans (5.5) so i'm guessing it is, I'm trying figure out how to update netbeans or check the version now.
Do you have any clue?
 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Up
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!