Computer Science Canada hidiously stupid question |
Author: | Tubs [ Tue Oct 03, 2006 11:50 am ] | ||
Post subject: | hidiously stupid question | ||
I am getting an error that Scanner cannot be resolved into a type and import java.util.Scanner cannot be resolved into a type. Very new at java so I don't know what could be wrong here... any ideas? |
Author: | Tony [ Tue Oct 03, 2006 12:22 pm ] |
Post subject: | |
Scanner does not resolve to a type, because of your next error - the import statement doesn't execute. I'm not sure as to why. What is this package thing, and why do you have it there? |
Author: | Tubs [ Tue Oct 03, 2006 12:27 pm ] | ||
Post subject: | |||
It is the package that contains all the classes with my school login name. This was the code that I used in lab and it worked fine:
|
Author: | r.3volved [ Tue Oct 03, 2006 1:05 pm ] |
Post subject: | |
Sounds like you probably don't have that scanner library installed, or your interpreter is not setup to link to that library yet |
Author: | r.3volved [ Tue Oct 03, 2006 1:11 pm ] |
Post subject: | |
Apparently I can't edit my posts here...so here ya go: http://forum.java.sun.com/thread.jspa?threadID=737355&messageID=4251558 btw that was the first google search I tried and it was the first link returned... ![]() http://www.google.ca/search?hl=en&q=Scanner+class+library+%2BJava&btnG=Search&meta= |
Author: | [Gandalf] [ Tue Oct 03, 2006 4:30 pm ] |
Post subject: | |
To me it sounds like you don't have Java 1.5.0 installed. Check which version of Java you have... Only 1.5 has the Scanner class. |