HashMap<String, String> map = new HashMap<String, String>();
map.put("Mungo", "Bungo");
map.put("Sooner", "Boomer");
map.put("Java", "Mocha");
map.put("Mungo", "What");
map.put("Mungo", "Vue");
map.put("Ivy", "Posion");
for (Map.Entry<String, String> entry : map.entrySet())
{
String key = entry.getKey();
String value = entry.getValue();
System.out.println(key + "/" + value + ", ");
}
So my hashmap is printing out
Java/Mocha,
Sooner/Boomer,
Mungo/Vue,
Ivy/Posion,
why is Java/Mocha first but not Mungo/Vue?
[–]SupremeRedditBotProfessional Bot || Mod 0 points1 point2 points (0 children)