class MapTest{
private Map
public MapTest(){
m.put("a",1);
m.put("b",2);
m.put("c",3);
}
public void outputMap(){
for(Map.Entry
System.out.println(e.getKey() + " " + e.getValue());
}
}
}
call it from public static void main as follows:
new MapTest( ).outputMap( )