wap to replace the second element of an arraylist with the specified element
Answers
Answered by
0
ArrayList. set(int index, E element) – Replace element at specified index. This method replaces the specified element E at the specified position in this list. As this method replaces the element, the list size does not change. Java program to update an arraylist element.
Similar questions