Question 2 (20 points) Show the values contained in the instance variables of the sample list after each of the followin
Posted: Tue Jul 12, 2022 8:16 am
Question 2 (20 points) Show the values contained in the instance variables of the sample list after each of the following sequences of operations. a. ABList<String> sample = new ABList<String>(5); sample.add("A"); sample.add("C"); sample.add("D"); sample.add("A"); sample.contains("D"); sample.remove("C"); b. ABList<String> sample = new ABList<String>(5); sample.add("A"); sample.add(0,"C"); sample.add(0,"D"); sample.contains("E"); sample.remove(2); sample.set(1,"Z"); sample.get("A"); sample.add(1,"Q"); c. LBList<String> sample = new LBList<String>(); sample.add("A"); sample.add("C"); sample.add("D"); sample.add("A"); sample.contains("D"); sample.remove("C"); d. LBList<String> sample = new LBList<String>(); sample.add("A"); sample.add(0,"C"); sample.add(0,"D"); sample.contains("E"); sample.remove(2); sample.set(1,"Z"); sample.get("A"); sample.add(1,"Q"); immmmmmmmmmm