Page 1255 - AP Computer Science A, 7th edition
P. 1255

33. (E) All three segments traverse the array, accessing one element at a time, and appending it to the end of the ArrayList. In segment II, the first parameter of the add method is the position in list where the next string s will be added. Since list.size() increases by one after each insertion, this index is correctly updated in each pass through the for-each loop.


































































































   1253   1254   1255   1256   1257