In the above program, when im trying to compile. The error im facing is Cannot find symbol ( Set<Map.Entry<String, Double>> set = hm.entrySet();
// Display the set
for(Map.Entry<String, Double> me : set):
Symbol is: class Entry
Location: class Map.
Well i even tried to copy the program file on desktop and compile it. Its still showing the same error. Well Im working on different programs not on project. Learning java from complete reference to java book. As far i searched for class on those names, there are no programs specified with that name.
The version of java im using is latest JRE 7
Joined: Oct 11, 2011
Thank you jesper,
ive Got it. I took all my applications to other file and tried to execute this. IT worked thank you
Joined: Oct 13, 2005
You must have another class called Map.Entry or similar somewhere in your folder.