/** Some operations on Measurable instances. * * Taken from Core Web Programming from * Prentice Hall and Sun Microsystems Press, * http://www.corewebprogramming.com/. * © 2001 Marty Hall and Larry Brown; * may be freely used or adapted. */ public class MeasureUtil { public static double maxArea(Measurable m1, Measurable m2) { return(Math.max(m1.getArea(), m2.getArea())); } public static double totalArea(Measurable[] mArray) { double total = 0; for(int i=0; i