Hello,
I have an ArrayList which contains L1 ArrayList. How do I change the value of a list L1 in the 2nd example
list1 contains
[[orange] [orange] [orange]]
And I want to add the mango 2nd list [orange] by [orange, mango]
I find myself withCode:List l2 = new ArrayList(); l2 = (ArrayList) l2.get(1); / / 1 because it counts from 0 l2.add("Mango");
[[orange1, mango], [Orange, Mango], [orange, mango]]
It adds orange everywhere. I was wondering that I could change the value of the list in the arraylist. is this possible and if yes then I am interested.
Bookmarks