Page 1022 - AP Computer Science A, 7th edition
P. 1022
25. (A) Recall that add(index, obj) shifts all elements, starting at index, one unit to the right, then inserts obj at position index. The set(index, obj) method replaces the element in position index with obj. So here is the state of list after each c hange:
i=0 6018 2018
i=1 20118 23118
i=2 231218 234218