double[] a = new double[10];Class c = a.getClass();if (c.isArray()) System.out.println(c.getComponentType()); // prints double
[D for double[])[[java.lang.String; for String[][]