I have a map of the following type:
private HashMap<Integer, HashMap<String, Object>> entireMap;
The keys go from 1 - n. The subMap inside the entireMap is of the following type:
HashMap<String, Object> subMap = new HashMap<String, Object>();
Every key of the entire map contains this subMap (and a lot more):
subMap.put("user_name", usid[1]);
So i have something like this at the end:
{1 {"user_name" = "Arthur", "otherKeys = ..."}}
{2 {"user_name" = "Bela", "otherKeys = ..."}}
{3 {"user_name" = "Ceasar", "otherKeys = ..."}}
{4 {"user_name" = "Ceasar", "otherKeys = ..."}}
{5 {"user_name" = "Bela", "otherKeys = ..."}}
{6 {"user_name" = "Bela", "otherKeys = ..."}}
Now I want to count the max occurence of a user_name in the entireMap, in this case it would be 3 (bela occures three times).
How can I do that?