Bookmark Topic Watch Topic
  • New Topic

Problem using Scanner in NetBeans 5.5

 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • 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 :

code:
--------------------------------------------------------------------------------

Scanner c = new Scanner(System.in);

--------------------------------------------------------------------------------



In Eclipse the same code has no error, what is going on here. Do I have to update Netbeans or something?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Report post to moderator
Scanner was introduced with Java 1.5 - perhaps Netbeans is referencing an earlier version of the JDK?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not crosspost. See http://faq.javaranch.com/java/CarefullyChooseOneForum

Closing...
 
    Bookmark Topic Watch Topic
  • New Topic