How to iterate hashmap using entryset?

preview_player
Показать описание
iterating through hashmap using entryset,
iterating over hashmap using entryset,
iterate through hashmap entryset,
iterating hashmap in java using entryset,
iterating hashmap using entryset,
iterating a hashmap using entryset,
java loop through hashmap entryset
Рекомендации по теме
Комментарии
Автор

Map<Integer, LinkedHashMap<String, String>> map=new LinkedHashMap<Integer, LinkedHashMap <String, String >>();
LinkedHashMap<String, String > lhm1=new LinkedHashMap<String, String>() ;
lhm1.put(''apple'', ''red'') ;
LinkedHashMap<String, String > lhm2=new LinkedHashMap<String, String>() ;
lhm2.put(''banana'', ''yello'') ;
map.put(1, lhm1) ;
map.put(2, lhm2);
I want result like

SNo Fruit Colour
1 apple red
2 banana yello

I am getting
SNo Fruit Colour
1 {apple=red}
2 {banana =yello}

shyamsoni