I submitted my code written in java and recived the following errors. what may be the possible reason for that;
“Main.java:6: cannot find symbol
symbol : class Set
location: class Main
Set s=new TreeSet();
^
Main.java:6: cannot find symbol
symbol : class TreeSet
location: class Main
Set s=new TreeSet();
^
Main.java:7: cannot find symbol
symbol : class Scanner
location: class Main
Scanner s1=new Scanner(System.in);
^
Main.java:7: cannot find symbol
symbol : class Scanner
location: class Main
Scanner s1=new Scanner(System.in);
^
Main.java:20: cannot find symbol
symbol : class Iterator
location: class Main
Iterator i=s.iterator();
^”