Finding the largest object
Write a method that returns the largest objects in an array of objects. The method
Signature is:
public static Object max( Comparable[] a)
All objects are instance of the Comparable interface. The order of objects in array is determined using compareTo method.
Write a test program( Deriver) that creates array of ten Strings, MRects and Dates, and find the largest String, MRect and Date in the array.


Get this answer with Chegg Study