Hi Friends,
I have this scanner program which I am trying to run:
I upgraded my jdk to 1.5 from 1.4.2 to run this program,but still getting this error.I also changed java_home and path accordingly,please help:
C:\>javac display.java
display.java:1: cannot resolve symbol
symbol : class Scanner
location: package util
import java.util.Scanner;
^
display.java:8: cannot resolve symbol
symbol : class Scanner
location: class
test Scanner sc = new Scanner( System.in );
^
display.java:8: cannot resolve symbol
symbol : class Scanner
location: class test
Scanner sc = new Scanner( System.in );
^
3 errors
C:\>
java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
Thanks