public static <T> T max(T[] items) {
        return max((Iterable<T>)Arrays.asList(items));
    }
public static < T > T max ( T [ ] items ) { return max ( ( Iterable < T > ) Arrays . asList ( items ) ) ; }
Selects the maximum value found in an array of items, so
min([2, 4, 6] as Object[]) == 6.

@param items an array of items
@return the maximum value