I've got an ArrayList. The first index has a value of 10.
I want to add 10 to this index so that now it contains 20.
I tried:
ArrayListName.add(0, 10);
Which obviously overrides the field. How can I add in the 10 instead?
If this is a duplicate please refer me to the appropriate article
Many thanks.
ArrayListNameas a variable name, java convention says a variable should start with lower case letter, not upper case (unless that's a final const, and then it should be all caps)