<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.lang.reflect.Array
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.reflect.html">This Package</a>  <a href="Package-java.lang.reflect.html">Previous</a>  <a href="java.lang.reflect.Constructor.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.lang.reflect.Array
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.lang.reflect.Array
</pre>
<hr>
<dl>
  <dt> public final class <b>Array</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
The Array class provides static methods to dynamically create and
 access Java arrays.
 <p>Array permits widening conversions to occur during a get or set
 operation, but throws an IllegalArgumentException if a narrowing
 conversion would occur.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#get(java.lang.Object, int)"><b>get</b></a>(Object, int)
  <dd>  Returns the value of the indexed component in the specified
 array object.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getBoolean(java.lang.Object, int)"><b>getBoolean</b></a>(Object, int)
  <dd>  Returns the value of the indexed component in the specified
 array object, as a boolean.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getByte(java.lang.Object, int)"><b>getByte</b></a>(Object, int)
  <dd>  Returns the value of the indexed component in the specified
 array object, as a byte.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getChar(java.lang.Object, int)"><b>getChar</b></a>(Object, int)
  <dd>  Returns the value of the indexed component in the specified
 array object, as a char.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDouble(java.lang.Object, int)"><b>getDouble</b></a>(Object, int)
  <dd>  Returns the value of the indexed component in the specified
 array object, as a double.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getFloat(java.lang.Object, int)"><b>getFloat</b></a>(Object, int)
  <dd>  Returns the value of the indexed component in the specified
 array object, as a float.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getInt(java.lang.Object, int)"><b>getInt</b></a>(Object, int)
  <dd>  Returns the value of the indexed component in the specified
 array object, as an int.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLength(java.lang.Object)"><b>getLength</b></a>(Object)
  <dd>  Returns the length of the specified array object, as an int.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLong(java.lang.Object, int)"><b>getLong</b></a>(Object, int)
  <dd>  Returns the value of the indexed component in the specified
 array object, as a long.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getShort(java.lang.Object, int)"><b>getShort</b></a>(Object, int)
  <dd>  Returns the value of the indexed component in the specified
 array object, as a short.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#newInstance(java.lang.Class, int)"><b>newInstance</b></a>(Class, int)
  <dd>  Creates a new array with the specified component type and
 length.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#newInstance(java.lang.Class, int[])"><b>newInstance</b></a>(Class, int[])
  <dd>  Creates a new array with the specified component type and
 dimensions.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#set(java.lang.Object, int, java.lang.Object)"><b>set</b></a>(Object, int, Object)
  <dd>  Sets the value of the indexed component of the specified array
 object to the specified new value.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setBoolean(java.lang.Object, int, boolean)"><b>setBoolean</b></a>(Object, int, boolean)
  <dd>  Sets the value of the indexed component of the specified array
 object to the specified boolean value.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setByte(java.lang.Object, int, byte)"><b>setByte</b></a>(Object, int, byte)
  <dd>  Sets the value of the indexed component of the specified array
 object to the specified boolean value.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setChar(java.lang.Object, int, char)"><b>setChar</b></a>(Object, int, char)
  <dd>  Sets the value of the indexed component of the specified array
 object to the specified byte value.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setDouble(java.lang.Object, int, double)"><b>setDouble</b></a>(Object, int, double)
  <dd>  Sets the value of the indexed component of the specified array
 object to the specified double value.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setFloat(java.lang.Object, int, float)"><b>setFloat</b></a>(Object, int, float)
  <dd>  Sets the value of the indexed component of the specified array
 object to the specified float value.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setInt(java.lang.Object, int, int)"><b>setInt</b></a>(Object, int, int)
  <dd>  Sets the value of the indexed component of the specified array
 object to the specified int value.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setLong(java.lang.Object, int, long)"><b>setLong</b></a>(Object, int, long)
  <dd>  Sets the value of the indexed component of the specified array
 object to the specified long value.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setShort(java.lang.Object, int, short)"><b>setShort</b></a>(Object, int, short)
  <dd>  Sets the value of the indexed component of the specified array
 object to the specified short value.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="newInstance(java.lang.Class, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="newInstance"><b>newInstance</b></a>
<pre>
 public static <a href="java.lang.Object.html#_top_">Object</a> newInstance(<a href="java.lang.Class.html#_top_">Class</a> componentType,
                                  int length) throws <a href="java.lang.NegativeArraySizeException.html#_top_">NegativeArraySizeException</a>
</pre>
<dl>
  <dd> Creates a new array with the specified component type and
 length.
 The effect is that of the equivalent array creation expression:
 <pre>
    new componentType[length]
 </pre>
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> componentType - the Class object representing the
 component type of the new array
    <dd> length - the length of the new array
    <dt> <b>Returns:</b>
    <dd> the new array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> if the specified
 componentType parameter is null
    <dt> <b>Throws:</b> <a href="java.lang.NegativeArraySizeException.html#_top_">NegativeArraySizeException</a>
    <dd> if the specified length
 is negative
  </dl></dd>
</dl>
<a name="newInstance(java.lang.Class, int[])"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="newInstance"><b>newInstance</b></a>
<pre>
 public static <a href="java.lang.Object.html#_top_">Object</a> newInstance(<a href="java.lang.Class.html#_top_">Class</a> componentType,
                                  int dimensions[]) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.NegativeArraySizeException.html#_top_">NegativeArraySizeException</a>
</pre>
<dl>
  <dd> Creates a new array with the specified component type and
 dimensions.
 <p>The effect is that of the equivalent array creation expression:
 <pre>
    new componentType[dimensions[0]][dimensions[1]]...
 </pre>
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> componentType - the Class object representing the component
 type of the new array
    <dd> dimensions - an array of ints representing the dimensions of
 the new array
    <dt> <b>Returns:</b>
    <dd> the new array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> if the specified
 componentType argument is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified dimensions
 argument is a zero-dimensional array, or if the number of
 requested dimensions exceeds the limit on the number of array dimensions 
 supported by the implementation (typically 255).
    <dt> <b>Throws:</b> <a href="java.lang.NegativeArraySizeException.html#_top_">NegativeArraySizeException</a>
    <dd> if any of the components in
 the specified dimension argument is negative.
  </dl></dd>
</dl>
<a name="getLength(java.lang.Object)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLength"><b>getLength</b></a>
<pre>
 public static native int getLength(<a href="java.lang.Object.html#_top_">Object</a> array) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
</pre>
<dl>
  <dd> Returns the length of the specified array object, as an int.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dt> <b>Returns:</b>
    <dd> the length of the array
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the object argument is not
 an array
  </dl></dd>
</dl>
<a name="get(java.lang.Object, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="get"><b>get</b></a>
<pre>
 public static native <a href="java.lang.Object.html#_top_">Object</a> get(<a href="java.lang.Object.html#_top_">Object</a> array,
                                 int index) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Returns the value of the indexed component in the specified
 array object.  The value is automatically wrapped in an object
 if it has a primitive type.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index
    <dt> <b>Returns:</b>
    <dd> the (possibly wrapped) value of the indexed component in
 the specified array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object is not
 an array
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to the
 length of the specified array
  </dl></dd>
</dl>
<a name="getBoolean(java.lang.Object, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getBoolean"><b>getBoolean</b></a>
<pre>
 public static native boolean getBoolean(<a href="java.lang.Object.html#_top_">Object</a> array,
                                         int index) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Returns the value of the indexed component in the specified
 array object, as a boolean.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index
    <dt> <b>Returns:</b>
    <dd> the value of the indexed component in the specified array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object is not
 an array, or if the indexed element cannot be converted to the
 return type by an identity or widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to the
 length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getByte(java.lang.Object, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getByte"><b>getByte</b></a>
<pre>
 public static native byte getByte(<a href="java.lang.Object.html#_top_">Object</a> array,
                                   int index) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Returns the value of the indexed component in the specified
 array object, as a byte.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index
    <dt> <b>Returns:</b>
    <dd> the value of the indexed component in the specified array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object is not
 an array, or if the indexed element cannot be converted to the
 return type by an identity or widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to the
 length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getChar(java.lang.Object, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getChar"><b>getChar</b></a>
<pre>
 public static native char getChar(<a href="java.lang.Object.html#_top_">Object</a> array,
                                   int index) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Returns the value of the indexed component in the specified
 array object, as a char.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index
    <dt> <b>Returns:</b>
    <dd> the value of the indexed component in the specified array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object is not
 an array, or if the indexed element cannot be converted to the
 return type by an identity or widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to the
 length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getShort(java.lang.Object, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getShort"><b>getShort</b></a>
<pre>
 public static native short getShort(<a href="java.lang.Object.html#_top_">Object</a> array,
                                     int index) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Returns the value of the indexed component in the specified
 array object, as a short.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index
    <dt> <b>Returns:</b>
    <dd> the value of the indexed component in the specified array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object is not
 an array, or if the indexed element cannot be converted to the
 return type by an identity or widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to the
 length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getInt(java.lang.Object, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getInt"><b>getInt</b></a>
<pre>
 public static native int getInt(<a href="java.lang.Object.html#_top_">Object</a> array,
                                 int index) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Returns the value of the indexed component in the specified
 array object, as an int.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index
    <dt> <b>Returns:</b>
    <dd> the value of the indexed component in the specified array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object is not
 an array, or if the indexed element cannot be converted to the
 return type by an identity or widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to the
 length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getLong(java.lang.Object, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLong"><b>getLong</b></a>
<pre>
 public static native long getLong(<a href="java.lang.Object.html#_top_">Object</a> array,
                                   int index) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Returns the value of the indexed component in the specified
 array object, as a long.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index
    <dt> <b>Returns:</b>
    <dd> the value of the indexed component in the specified array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object is not
 an array, or if the indexed element cannot be converted to the
 return type by an identity or widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to the
 length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getFloat(java.lang.Object, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getFloat"><b>getFloat</b></a>
<pre>
 public static native float getFloat(<a href="java.lang.Object.html#_top_">Object</a> array,
                                     int index) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Returns the value of the indexed component in the specified
 array object, as a float.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index
    <dt> <b>Returns:</b>
    <dd> the value of the indexed component in the specified array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object is not
 an array, or if the indexed element cannot be converted to the
 return type by an identity or widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to the
 length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="getDouble(java.lang.Object, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDouble"><b>getDouble</b></a>
<pre>
 public static native double getDouble(<a href="java.lang.Object.html#_top_">Object</a> array,
                                       int index) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Returns the value of the indexed component in the specified
 array object, as a double.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index
    <dt> <b>Returns:</b>
    <dd> the value of the indexed component in the specified array
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object is not
 an array, or if the indexed element cannot be converted to the
 return type by an identity or widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to the
 length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#get">get</a>
  </dl></dd>
</dl>
<a name="set(java.lang.Object, int, java.lang.Object)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="set"><b>set</b></a>
<pre>
 public static native void set(<a href="java.lang.Object.html#_top_">Object</a> array,
                               int index,
                               <a href="java.lang.Object.html#_top_">Object</a> value) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> 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.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index into the array
    <dd> value - the new value of the indexed component
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object argument
 is null, or if the array component type is primitive and the specified
 value is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> 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
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to
 the length of the specified array
  </dl></dd>
</dl>
<a name="setBoolean(java.lang.Object, int, boolean)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setBoolean"><b>setBoolean</b></a>
<pre>
 public static native void setBoolean(<a href="java.lang.Object.html#_top_">Object</a> array,
                                      int index,
                                      boolean z) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Sets the value of the indexed component of the specified array
 object to the specified boolean value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index into the array
    <dd> value - the new value of the indexed component
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object argument
 is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object argument
 is not an array, or if the the specified value cannot be converted
 to the underlying array's component type by an identity or a
 primitive widening widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to
 the length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setByte(java.lang.Object, int, byte)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setByte"><b>setByte</b></a>
<pre>
 public static native void setByte(<a href="java.lang.Object.html#_top_">Object</a> array,
                                   int index,
                                   byte b) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Sets the value of the indexed component of the specified array
 object to the specified boolean value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index into the array
    <dd> value - the new value of the indexed component
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object argument
 is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object argument
 is not an array, or if the the specified value cannot be converted
 to the underlying array's component type by an identity or a
 primitive widening widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to
 the length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setChar(java.lang.Object, int, char)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setChar"><b>setChar</b></a>
<pre>
 public static native void setChar(<a href="java.lang.Object.html#_top_">Object</a> array,
                                   int index,
                                   char c) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Sets the value of the indexed component of the specified array
 object to the specified byte value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index into the array
    <dd> value - the new value of the indexed component
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object argument
 is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object argument
 is not an array, or if the the specified value cannot be converted
 to the underlying array's component type by an identity or a
 primitive widening widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to
 the length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setShort(java.lang.Object, int, short)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setShort"><b>setShort</b></a>
<pre>
 public static native void setShort(<a href="java.lang.Object.html#_top_">Object</a> array,
                                    int index,
                                    short s) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Sets the value of the indexed component of the specified array
 object to the specified short value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index into the array
    <dd> value - the new value of the indexed component
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object argument
 is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object argument
 is not an array, or if the the specified value cannot be converted
 to the underlying array's component type by an identity or a
 primitive widening widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to
 the length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setInt(java.lang.Object, int, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setInt"><b>setInt</b></a>
<pre>
 public static native void setInt(<a href="java.lang.Object.html#_top_">Object</a> array,
                                  int index,
                                  int i) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Sets the value of the indexed component of the specified array
 object to the specified int value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index into the array
    <dd> value - the new value of the indexed component
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object argument
 is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object argument
 is not an array, or if the the specified value cannot be converted
 to the underlying array's component type by an identity or a
 primitive widening widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to
 the length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setLong(java.lang.Object, int, long)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setLong"><b>setLong</b></a>
<pre>
 public static native void setLong(<a href="java.lang.Object.html#_top_">Object</a> array,
                                   int index,
                                   long l) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Sets the value of the indexed component of the specified array
 object to the specified long value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index into the array
    <dd> value - the new value of the indexed component
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object argument
 is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object argument
 is not an array, or if the the specified value cannot be converted
 to the underlying array's component type by an identity or a
 primitive widening widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to
 the length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setFloat(java.lang.Object, int, float)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setFloat"><b>setFloat</b></a>
<pre>
 public static native void setFloat(<a href="java.lang.Object.html#_top_">Object</a> array,
                                    int index,
                                    float f) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Sets the value of the indexed component of the specified array
 object to the specified float value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index into the array
    <dd> value - the new value of the indexed component
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object argument
 is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object argument
 is not an array, or if the the specified value cannot be converted
 to the underlying array's component type by an identity or a
 primitive widening widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to
 the length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<a name="setDouble(java.lang.Object, int, double)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setDouble"><b>setDouble</b></a>
<pre>
 public static native void setDouble(<a href="java.lang.Object.html#_top_">Object</a> array,
                                     int index,
                                     double d) throws <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>, <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
</pre>
<dl>
  <dd> Sets the value of the indexed component of the specified array
 object to the specified double value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> array - the array
    <dd> index - the index into the array
    <dd> value - the new value of the indexed component
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> If the specified object argument
 is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> If the specified object argument
 is not an array, or if the the specified value cannot be converted
 to the underlying array's component type by an identity or a
 primitive widening widening conversion
    <dt> <b>Throws:</b> <a href="java.lang.ArrayIndexOutOfBoundsException.html#_top_">ArrayIndexOutOfBoundsException</a>
    <dd> If the specified index
 argument is negative, or if it is greater than or equal to
 the length of the specified array
    <dt> <b>See Also:</b>
    <dd> <a href="#set">set</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.reflect.html">This Package</a>  <a href="Package-java.lang.reflect.html">Previous</a>  <a href="java.lang.reflect.Constructor.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
