I want to be able to decrease a value in an ArrayList to simulate an object being removed from a pile. However I cannot do this with ArrayList(String)
The example below is what i've attempted.
ItemArray.get(pressedItem + 1) = (ItemArray.get(pressedItem + 1)) - 1
Is there a way to get values in an ArrayList into a more manipulatable state?
EDIT:
Just to point out that my ArrayList is ArrayList(String) at the moment