Method newInstance(Class componentType, int length)
Return type: java.lang.Object
Member of: java.lang.reflect.Array
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 java.lang.reflect.Array.newInstance(java.lang.Character.TYPE, 0).getClass();
2 java.lang.reflect.Array.newInstance(java.lang.Character.TYPE, 0).getClass();
3 Object array = Array.newInstance(in, 0);
4 Object testA = Array.newInstance(baseClass, 0);
5 clazz = Array.newInstance(elementClass, 0).getClass();
6 array = Array.newInstance(componentKlass, 0);
7 a = (Object[])Array.newInstance(cl, 0);
8 return java.lang.reflect.Array.newInstance(c, 1).getClass();
9 Array.newInstance(listenerType,
10 Object theArray = Array.newInstance (getAClass (jf.getObjectType ()), nodes.size ());
11 Object a = Array.newInstance(compType, values.length);
12 Object array = Array.newInstance(type.getComponentType(), length);
13 Array.newInstance(paramType, values.length);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.