public interface Measurable { double getMeasure(); /** Computes the smallest of the measures of the given objects. @param objects an array of Measurable objects @return the object with the smallest measure, null if array is empty */ static Measurable smallest(Measurable[] objects) { if (objects.length == 0) { return null; } Measurable min = objects[0]; for (Measurable obj : objects) { if (obj.getMeasure() < min.getMeasure()) { min = obj; } } return min; } /** Computes the largest of the measures of the given objects. @param objects an array of Measurable objects @return the object with the largest measure, null if array is empty */ static Measurable largest(Measurable[] objects) { if (objects.length == 0) { return null; } Measurable max = objects[0]; for (Measurable obj : objects) { if (obj.getMeasure() > max.getMeasure()) { max = obj; } } return max; } } ************************************************************************************************************* /** Class to get surface area and volume of a soda can. You are to write the class definition and implement the getMeasure method. */ //-----------Start below here. To do: approximate lines of code = 1 // Define the class SodaCan and have it implement Measurable //-----------------End here. Please do not remove this comment. Reminder: no changes outside the todo regions. { private double height; private double radius; /** Initializes a can with given height and radius. @param height the height @param radius the radius */ public SodaCan(double height, double radius) { this.height = height; this.radius = radius; } /** Calculates the surface area of the soda can. @return the surface area of the soda can */ public double getSurfaceArea() { return 2 * Math.PI * radius * (radius + height); } /** Calculates the volume of the soda can. @return the volume of the soda can */ public double getVolume() { return Math.PI * radius * radius * height; } /** Returns the area of the soda can. @return the area of the soda can */ //-----------Start below here. To do: approximate lines of code = 2 // write a method that correctly implements the Measurable interface // The method should return the surface area of the sodaCan object //-----------------End here. Please do not remove this comment. Reminder: no changes outside the todo regions. } **************************************************************************************************************** ****************** /** A class to calculate the area of several SodaCans. You are to complete the following: - Complete the method totalMeasure which calculates the total measure over all the Measurable items in a given array */ public class SodaCanTester { /** Calculates the total measure over all the given Measurable items @param items the items @return the total measure of the items */ private static double totalMeasure(Measurable[] items) { //-----------Start below here. To do: approximate lines of code = 4 // get the measure from all objects in the arr.