You get different results with that:
Object anArray2 = java.lang.reflect.Array.newInstance(String.class, 4);
System.out.println("aA2=" +anArray2); //aA2=[Ljava.lang.String;@12dacd1
...
Type: Posts; User: Norm
You get different results with that:
Object anArray2 = java.lang.reflect.Array.newInstance(String.class, 4);
System.out.println("aA2=" +anArray2); //aA2=[Ljava.lang.String;@12dacd1
...
The new thing learned today:
Object anArray = java.lang.reflect.Array.newInstance(Class.forName("java.lang.String"), new int[4]);
System.out.println("aA=" +anArray); ...
Not sure what you mean here. You imply that you don't know the number of dimensions until execution time.
If you were able to create this array at execution time, how would your code use/access...