Java: count the total number of items in a HashMap<String, ArrayList<String>>
Asked 2011-03-31T08:14:52.217
31
I have this HashMap<String, ArrayList<Item>> , is there a way to count the total number of items in all the Lists in the Map without going through all Lists?
Or should I iterate through the Map and along all lists ?