Hello, i have a hash map that I would like to iterate through. Here is the code:
HashMap<Integer, Object> hash= new HashMap<Integer, Object>();
Set keys = hash.keySet();
Iterator iter = keys.iterator();
However, I am getting an error with the above code. It says that Set cannot be resolved to a type. How do i iterate through the keys of a hash map?