public static Class getArrayClass(Class c) {
     if (c.getComponentType().isArray())
        return getArrayClass(c.getComponentType());
     else
        return c.getComponentType();
  }
public static Class getArrayClass ( Class c ) { if ( c . getComponentType ( ) . isArray ( ) ) return getArrayClass ( c . getComponentType ( ) ) ; else return c . getComponentType ( ) ; }
Returns the basic class of an array class (handles multi-dimensional
arrays).
@param c        the array to inspect
@return         the class of the innermost elements