12. (B) The index range for ArrayList is 0 ≤ index ≤ size()–1. Thus, for methods get, remove, and set, the last in-bounds index is size()–1. The one exception is the add method—to add an element to the end of the list takes an index parameter list.size().