I have an already existing ArrayList<Integer>
and I'd like to add 1 to an Integer
at a specific index. However, it gives me the error that "The left-hand side of an assignment must be a variable." It's something like this:
arrayListOfIntegers.get(i) += 1;