List.set

Replaces the element at the specified position in this list with the specified element (optional operation).

@param index index of the element to replace @param element element to be stored at the specified position @return the element previously at the specified position @throws UnsupportedOperationException if the <tt>set</tt> operation is not supported by this list @throws ClassCastException if the class of the specified element prevents it from being added to this list @throws NullPointerException if the specified element is null and this list does not permit null elements @throws IllegalArgumentException if some property of the specified element prevents it from being added to this list @throws IndexOutOfBoundsException if the index is out of range (<tt>index &lt; 0 || index &gt;= size()</tt>)

interface List(E)
E
set
(
int index
,)

Meta