I am getting the following error:
This is happening in My RAD and Eclipse when i try to run using WAS 8.0 JRE runtime.
Can somebody suggest?
I am getting the following error:
This is happening in My RAD and Eclipse when i try to run using WAS 8.0 JRE runtime.
Can somebody suggest?
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());
}