0

Im currently working on a project in which I am using hashmaps of type . The string wont change, but is it at all possible for me to change the integer value from a method call if you catch my drift.

commoditiesMap = new HashMap<String, Integer>();
commoditiesMap.put("Steel", 10);

public void addInteger(HashMap<String, Integer> commoditiesMap)
{

}

Basically i need to alter the value of 10 so it can be raised or lowered when needed.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
statik
  • 31
  • 1

0 Answers0