Increment Integer object
807603Oct 24 2007 — edited Oct 24 2007Ok, I will probably get told off for this question, called a n00b or whatever and told to read stuff. I've looked and havent found anything or I've just missed it. I'm storing keys and values in a map (abviously). The map just stores sizes. I have a main list. Joe might have 10 items on the list and Kate might have 5. The main list size is 15 but I need to store the sizes for Joe and Kate. So I have another map where Joe and Kate are keys and the value is the number of items. If they add another item it seems like hassle having to remove the Integer, get int, increment, then place back in. Surely theres a quicker way.
Could anyone just give me a bit of help here?
Thanks.