You can use the methods in the Collections class to

a. find the maximum object in a collection based on the compareTo method.
b. find the maximum object in a collection using a Comparator object.
c. sort a collection.
d. shuffle a collection.
e. do a binary search on a collection.

ab The Collections class has a method to sort a list, shuffle a list, and perform binary search on a list, but not on collection. Note that collection includes set.

Computer Science & Information Technology

You might also like to view...

When more than two buffers are used, the collection of buffers is itself referred to as a __________, with each individual buffer being one unit.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A(n) ____________________ is a group of related information in a column or row of a worksheet that is plotted on the chart.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology