1

I am getting the following error:

enter image description here

This is happening in My RAD and Eclipse when i try to run using WAS 8.0 JRE runtime.

Can somebody suggest?

Kiran
  • 1,145
  • 1
  • 8
  • 22
  • What is the actual type of the object that you are passing to `signatureMap`? – RealSkeptic Apr 10 '15 at 13:02
  • One thing to check: go to the project properties and find the "Build Path". Is it using the correct (1.8) version of the JRE system library? – BretC Apr 10 '15 at 13:02
  • possible duplicate of [The type Set is not generic; it cannot be parameterized with arguments ](http://stackoverflow.com/questions/19374315/the-type-set-is-not-generic-it-cannot-be-parameterized-with-arguments-integer) – gtgaxiola Apr 10 '15 at 13:03
  • Do you have, by any chance, your own class called `Set` (or some other class called `Set`) which is picked up instead of `java.util.Set`? – Jesper Apr 10 '15 at 13:12

1 Answers1

0

Check your RAD Build path and compiler level.

Also check you import statement. Map should be java.util.Map;

Your iteration procedure is correct and code is fine. you can iterate a map in another way as shown below :

Map<String, String> map = new HashMap<String, String>();
for (Map.Entry<String, String> entry : map.entrySet()) {
    System.out.println("Key = " + entry.getKey() + ", Value = " + entry.getValue());
}
kavi temre
  • 1,321
  • 2
  • 14
  • 21