I have an ArrayList<HashMap<String, String>> which stores certain values associated with their keys.
map = new HashMap<String,String>();
map.put(NEWTITLE, title);
map.put(TITLE, description);
map.put(THUMBNAILPATH, thumbnail);
map.put(BODY, body);
map.put(NEWID, newId);
map.put(ID, newsId);
map.put(PUBLISHER,publisherName);
myNList.add(map);
I want to group the above list according to the key "NEWID" any idea how this can be done?
HashMap<String, HashMap<String, String>>