Scanner class library - Error
When I compile the mbare_projectOne.java I get the following error. There is a "^" under both the "S" of the word Scanner.
G:\CS 151\mbare_projectOne.java:31: cannot resolve symbol
symbol : class Scanner
location: class mbare_projectOne
Scanner keyboard = new Scanner(System.in);
^
G:\CS 151\mbare_projectOne.java:31: cannot resolve symbol
symbol : class Scanner
location: class mbare_projectOne
Scanner keyboard = new Scanner(System.in);
^
2 errors
It is my understanding that the java.util.*; library has the Scanner class. Below is what I have for the program, everything checks out good but for the "Scanner".
/* establish keyboard input */
Scanner keyboard = new Scanner(System.in);
* edit: took out all the unnecessary lines, just need to figure out why i'm getting the Scanner error.
Message was edited by: mlorente
mlorente

