Page 1 of 1
CSIS210 Data Suructures & Algorithms Spring 2022 Q7 (10 points) Using the Array List implementation of the interface Lis
Posted: Mon Jun 06, 2022 12:20 pm
by answerhappygod

- Csis210 Data Suructures Algorithms Spring 2022 Q7 10 Points Using The Array List Implementation Of The Interface Lis 1 (19.75 KiB) Viewed 37 times

- Csis210 Data Suructures Algorithms Spring 2022 Q7 10 Points Using The Array List Implementation Of The Interface Lis 2 (8.72 KiB) Viewed 37 times
CSIS210 Data Suructures & Algorithms Spring 2022 Q7 (10 points) Using the Array List implementation of the interface Listinterface, Show the contents of the internal array of AList after executing lines 1-4, then after executing lines 5-6 and finaly after executing line 7. I. ListInterface-String> x-new AList String 0: 2. x.add("A"); 3. x.add("B"); 4 x.add(1, "W"); 0 2 5. x.add("D"); 6. x.replace(2,"E"): 0 1 2 3
S. x.add(""); 6. x.replace(2,"E"): 1 0 7. x.remove(3): 0 7 3 3