Array.set

Array.set

Class Overview | Class Members | This Package | All Packages

Syntax
public static native void set( Object array, int index, Object value ) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
Parameters
array
the array
index
the index into the array
value
the new value of the indexed component
Description
Sets the value of the indexed component of the specified array object to the specified new value. The new value is first automatically unwrapped if the array has a primitive component type.

Exceptions
NullPointerException If the specified object argument is null, or if the array component type is primitive and the specified value is null
Exceptions
IllegalArgumentException If the specified object argument is not an array, or if the array component type is primitive and the specified value cannot be converted to the primitive type by a combination of unwrapping and identity or widening conversions
Exceptions
ArrayIndexOutOfBoundsException If the specified index argument is negative, or if it is greater than or equal to the length of the specified array