Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HashMap<String, Object> map1 = new HashMap<String, Object>();
map1.put("a", 1);
map1.put("b", 2);
TreeMap<String, Object> map2 = new TreeMap<String, Object>();
map2.put("b", 2)
map2.put("a", 1);
map1.equals(map2); // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.