/** * Test driver for the ObjectPair class. * * @author Nathan Sprague * @version V1, 8/2016 * */ public class ObjectPairDriver { /** * Create several stadium pairs then print the name of the stadium with the largest capacity. * * @param args Not used. */ public static void main(String[] args) { ObjectPair[] stadiums = new ObjectPair[3]; stadiums[0] = new ObjectPair("Bridgeforth Stadium", 25000); stadiums[1] = new ObjectPair("Michigan Stadium", 109901); stadiums[2] = new ObjectPair("Lane Stadium", "66,233"); System.out.println(stadiums[0]); } /** * Returns the name of the stadium with the largest capacity. * * @param stadiums An array of ObjectPairs where each pair contains a stadium name followed by an * integer capacity * @return The name of the stadium with the largest capacity */ public static String largestStadium(ObjectPair[] stadiums) { return ""; } }