This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
try this . i didnt check this . if any problem try to solve it
Joined: Oct 07, 2009
Yeah, it works successfully. With a little change. But I still have a problem with the hashmap. The result I saw at the console is the same and it is repeating many manyyy times. I tought that the problem is with printing because I checked the information that I have already set at tha big hash map:
My first reaction to you key type "HashMap<Dimension, Integer>" was "What the heck..". Have you considered the point that key should be immutable? Is your key contents are final and unmodifiable ? I think, if you will rearrange Dimension, Integer and String a little bit from datastructure point of view, you can have simple and robust design.