Write a test program that creates an array of ten strings


Question: Finding the largest object) 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 compare To method.

Program: Write a test program that creates 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 arrays.

I can't seem to get this to work for some reason could anybody provide me a code to compare and test?

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a test program that creates an array of ten strings
Reference No:- TGS0949818

Expected delivery within 24 Hours