So I have a map:
Map<String, Integer> totals = new LinkedHashMap<String, Integer>();
I'm going to have about 6 running totals and I figured rather than creating 6 different variables, why not put it into a map. The only problem I have is, how do you add a value to an existing map entry? The map only seems to have the put method so I'm not sure how to go about this?
Any ideas? Am I over-complicating the situation?