集合类max()方法 (Collections Class max() method)
Syntax:
句法:
public static Type max(Collection co);
public static Type max(Collection co, Comparator com);
max() method is available in java.util package.
max()方法在java.util包中可用。
max(Collection co) method is used to return the greatest value element of the given collection depend on natural sorting.
max(Collection co)方法用于根据自然排序返回给定集合的最大值元素。
max(Collection co, Comparator com) method is used to return the greatest value element of the given collection depend on customizing sorting as given Comparator object.
max(Collection co&#