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...

_________ consists of an encapsulating header and trailer used to provide encryption or combined encryption/authentication. The current specification is RFC 4303.

A) SPI B) ESP C) ISA D) IPsec

Computer Science & Information Technology

What is the output of the following pseudocode?if 3 < 4 thenĀ  print "Hello"elseĀ  print "Goodbye"endif

A. Hello B. Goodbye C. Nothing D. An error

Computer Science & Information Technology

The first step in OOD is to identify the components called ____.

A. classes B. objects C. methods D. data

Computer Science & Information Technology

What type of RAID volume is used for fault tolerance and only requires two drives?

A. RAID 0 B. RAID 1 C. RAID 5 D. RAID 10

Computer Science & Information Technology