public class Array extends Object
| Constructor and Description |
|---|
Array() |
| Modifier and Type | Method and Description |
|---|---|
static Class |
getComponentType(Object array) |
static int |
getLength(Object array) |
static boolean |
isArray(Object array) |
static Object |
newInstance(Class type,
int len) |
static Object |
newInstance(String className,
int len)
Create a new instance of a particular class - which cannot be a primitive value, but
can be of an array or object type.
|
public static boolean isArray(Object array)
public static int getLength(Object array)
public static Object newInstance(String className, int len)
className - A class or array name.len - The number of elements.