previous | start | next

## Array Types

- Can apply `getClass` to an array
- Returned object describes an array type

      double[] a = new double[10];

      Class c = a.getClass();

      if (c.isArray())

         System.out.println(c.getComponentType());

            // prints double

- `getName` produces strange names for array types

      [D for double[])

      [[java.lang.String; for String[][]

previous | start | next