why is it easier to modify elements of an arraylist in java? code example
Example: java replace element in list
list.set(4, "element at index 4 is replaced by this string");
list.set(4, "element at index 4 is replaced by this string");