Replaces the element at the specified location in this List with the specified object. This operation does not change the size of the List. @param location the index at which to put the specified object. @param object the object to insert. @return the previous
(int location, E object)
| 304 | * if {@code location < 0 || >= size()} |
| 305 | */ |
| 306 | public E set(int location, E object); |
| 307 | |
| 308 | /** |
| 309 | * Returns the number of elements in this {@code List}. |