Java programmeerimise konspekt
static Object max(Collection coll)
Returns the maximum element of the given
collection, according to the natural ordering of its
elements.
static Object min(Collection coll)
Returns the minimum element of the given
collection, according to the natural ordering of its
elements.
static List nCopies(int n, Object o)
Returns an immutable list consisting of n copies of
the specified object.
static boolean replaceAll(List list, Object oldVal,
Object newVal)
Replaces all occurrences of one specified value in
a list with another.
static void reverse(List list)
Reverses the order of the elements in the specified