Suppose that a bag contains Comparable objects. Implement the following methods for the class ArrayBag:
● The method getMin that returns the smallest object in a bag
● The method getMax that returns the largest object in a bag
● The method removeMin that removes and returns the smallest object in a bag
● The method removeMax that removes and returns the largest object in a bag
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.