If I pull out an object out of my HashMap, and then modify it. Will it modify inside the HashMap also? Or, do I need to set it back again to the HashMap after modifying it?
For example:
HashMap<Integer,TwoPoints> loc = new HashMap<Integer,TwoPoints>();
...
...
TwoPoints tp = loc.get(Id); //pulls out the object
tp.setPoint(group, new Point(x,y); //a method to set something inside the object I pulled.