To modify an element, use the set()
method and refer to the index number:
Example
cars.set(0, "Opel");
Practice Excercise Practice now
To modify an element, use the set()
method and refer to the index number:
cars.set(0, "Opel");
Practice Excercise Practice now