Array
Class Array
- java.lang.Object
-
- java.lang.reflect.Array
public final class Array extends Object
The Array
class provides static methods to dynamically create and access Java arrays.
Array
permits widening conversions to occur during a get or set operation, but throws an IllegalArgumentException
if a narrowing conversion would occur.
Methods
newInstance
public static Object newInstance(Class<?> componentType, int length) throws NegativeArraySizeException
Creates a new array with the specified component type and length. Invoking this me