Finding the largest object
Write a method that returns the largest objects in an array of objects. The method
public static Object max( Comparable a)
All objects are instance of the Comparable interface. The order of objects in array is determind using compareTo method.
Write a test program( Deriver) that creates array of ten Strings, MyRects and Dates, and find the largest String, MyRect and Date in the array.
|$65.00||no category||lightsource||0 time(s)|
|$65.00||no category||A-coder||1 time(s)|