Package java.util
Class Collections
static Object min(Collection c)
static Object min(Collection c, Comparator order)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
max(Collection c) method:
Like below but using the natural ordering of the elements.
max(Collection c, Comparator order) method:
Returns the minimum element of the given collection, according to the order induced by the specified comparator. All elements in the collection must be mutually comparable by the specified comparator (that is, comp.compare(e1, e2) must not throw a ClassCastException for any elements e1 and e2 in the collection).
This method iterates over the entire collection, hence it requires time proportional to the size of the collection.