⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 array.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
public static <A HREF="../../../java/lang/Object.html">Object</A> <B>get</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                         int&nbsp;index)                  throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                         <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">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.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index<DT><B>Returns:</B><DD>the (possibly wrapped) value of the indexed component in the specified array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - If the specified object is not an array<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code>  argument is negative, or if it is greater than or equal to the length of the specified array</DL></DD></DL><HR><A NAME="getBoolean(java.lang.Object, int)"><!-- --></A><H3>getBoolean</H3><PRE>public static boolean <B>getBoolean</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                                 int&nbsp;index)                          throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                                 <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Returns the value of the indexed component in the specified array object, as a <code>boolean</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index<DT><B>Returns:</B><DD>the value of the indexed component in the specified array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - 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<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code>  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="../../../java/lang/reflect/Array.html#get(java.lang.Object, int)"><CODE>get(java.lang.Object, int)</CODE></A></DL></DD></DL><HR><A NAME="getByte(java.lang.Object, int)"><!-- --></A><H3>getByte</H3><PRE>public static byte <B>getByte</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                           int&nbsp;index)                    throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                           <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Returns the value of the indexed component in the specified array object, as a <code>byte</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index<DT><B>Returns:</B><DD>the value of the indexed component in the specified array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - 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<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code>  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="../../../java/lang/reflect/Array.html#get(java.lang.Object, int)"><CODE>get(java.lang.Object, int)</CODE></A></DL></DD></DL><HR><A NAME="getChar(java.lang.Object, int)"><!-- --></A><H3>getChar</H3><PRE>public static char <B>getChar</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                           int&nbsp;index)                    throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                           <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Returns the value of the indexed component in the specified array object, as a <code>char</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index<DT><B>Returns:</B><DD>the value of the indexed component in the specified array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - 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<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code>  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="../../../java/lang/reflect/Array.html#get(java.lang.Object, int)"><CODE>get(java.lang.Object, int)</CODE></A></DL></DD></DL><HR><A NAME="getShort(java.lang.Object, int)"><!-- --></A><H3>getShort</H3><PRE>public static short <B>getShort</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                             int&nbsp;index)                      throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                             <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Returns the value of the indexed component in the specified array object, as a <code>short</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index<DT><B>Returns:</B><DD>the value of the indexed component in the specified array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - 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<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code>  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="../../../java/lang/reflect/Array.html#get(java.lang.Object, int)"><CODE>get(java.lang.Object, int)</CODE></A></DL></DD></DL><HR><A NAME="getInt(java.lang.Object, int)"><!-- --></A><H3>getInt</H3><PRE>public static int <B>getInt</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                         int&nbsp;index)                  throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                         <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Returns the value of the indexed component in the specified array object, as an <code>int</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index<DT><B>Returns:</B><DD>the value of the indexed component in the specified array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - 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<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code>  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="../../../java/lang/reflect/Array.html#get(java.lang.Object, int)"><CODE>get(java.lang.Object, int)</CODE></A></DL></DD></DL><HR><A NAME="getLong(java.lang.Object, int)"><!-- --></A><H3>getLong</H3><PRE>public static long <B>getLong</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                           int&nbsp;index)                    throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                           <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Returns the value of the indexed component in the specified array object, as a <code>long</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index<DT><B>Returns:</B><DD>the value of the indexed component in the specified array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - 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<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code>  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="../../../java/lang/reflect/Array.html#get(java.lang.Object, int)"><CODE>get(java.lang.Object, int)</CODE></A></DL></DD></DL><HR><A NAME="getFloat(java.lang.Object, int)"><!-- --></A><H3>getFloat</H3><PRE>public static float <B>getFloat</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                             int&nbsp;index)                      throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                             <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Returns the value of the indexed component in the specified array object, as a <code>float</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index<DT><B>Returns:</B><DD>the value of the indexed component in the specified array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - 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<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code>  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="../../../java/lang/reflect/Array.html#get(java.lang.Object, int)"><CODE>get(java.lang.Object, int)</CODE></A></DL></DD></DL><HR><A NAME="getDouble(java.lang.Object, int)"><!-- --></A><H3>getDouble</H3><PRE>public static double <B>getDouble</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                               int&nbsp;index)                        throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                               <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Returns the value of the indexed component in the specified array object, as a <code>double</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index<DT><B>Returns:</B><DD>the value of the indexed component in the specified array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - 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<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code>  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="../../../java/lang/reflect/Array.html#get(java.lang.Object, int)"><CODE>get(java.lang.Object, int)</CODE></A></DL></DD></DL><HR><A NAME="set(java.lang.Object, int, java.lang.Object)"><!-- --></A><H3>set</H3><PRE>public static void <B>set</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                       int&nbsp;index,                       <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;value)                throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                       <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">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.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index into the array<DD><CODE>value</CODE> - the new value of the indexed component<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object argument is null, or if the array component type is primitive and the specified value is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - 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<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code>  argument is negative, or if it is greater than or equal to the length of the specified array</DL></DD></DL><HR><A NAME="setBoolean(java.lang.Object, int, boolean)"><!-- --></A><H3>setBoolean</H3><PRE>public static void <B>setBoolean</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;array,                              int&nbsp;index,                              boolean&nbsp;z)                       throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A>,                              <A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Sets the value of the indexed component of the specified array object to the specified <code>boolean</code> value.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array<DD><CODE>index</CODE> - the index into the array<DD><CODE>value</CODE> - the new value of the indexed component<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If the specified object argument is null<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - 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<DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - If the specified <code>index</code> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -