Page 1 of 1

**** DO NOT JUST COPY AND PASTE, THOSE ANSWERS DON'T WORK!!!!****Modify the existing ArrayLists's contents, by erasing t

Posted: Mon Jul 11, 2022 9:50 am
by answerhappygod
**** DO NOT JUST COPY AND PASTE, THOSE ANSWERS DON'TWORK!!!!****Modify the existing ArrayLists's contents, byerasing the second element, then inserting 100 and 102 in the shownlocations. Use ArrayList's remove() and add() only. SampleArrayList content of below program:
import java.util.ArrayList;
public class ArrayListADT {
public static void main (String [] args) { ArrayList<Integer> numsList = newArrayList<Integer>(); int numOfElem = 4;
numsList.add(101); numsList.add(200); numsList.add(103);
/* Your solution goes here */
}}