I am getting an map as shown below inside a method
Map result1 =jmxService.generateMabc(p1, p2,p3,p4);
now the map resu
An Integer is not a String. So j = entry.getKey()
doesn't make sense.
You need to transform the Integer into a String (by calling toString()
for example):
j = entry.getKey().toString();
You really need to learn to