hi, i'm having trouble with this java programming problem. any help will be greatly appreciated
Write a method that returns the largest object in an array of objects. The method signature is:
public static Object max(Comparable[] a)
all the objects are instances of the Comparable interface. The order of the objects in the array is determined using the compareTo method.
Write a test program that create an array of ten strings, an array of ten integers, and an array of ten dates, and finds the largest string, integer, and date in the array.
*i think the compareto method is what is confusing me*