operty</code> - The index of the value to be set. Will be coerced into an integer.</dd>
<dd><code>val</code> - The value to be set at the given index.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang" class="externalLink">ClassCastException</a></code> - if the class of the specified element prevents it from being added to this list.<