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

37. (B) Eliminate choices D and E immediately, since assignment of new values in an ArrayList is done with the set method, not get. Eliminate choice C since you do not know that the TileBag class has a swap method. Choice A fails because it replaces the element at position size before storing it. Choice B works because the element at position index has been saved in temp.


































































































   709   710   711   712   713