import java.util.ArrayList; public class InteractiveMath2 { ArrayList polys; public InteractiveMath2(){ polys = new ArrayList(); polys.add(new RightTriangle2( 0x0 , 3.2 , 4.1) ); polys.add(new Rectangle2(0xffffff , 3.2 , 4.1 )); System.out.println( polys.get(0).getColor()) ; } // PART I //@ returns the area of all of all rectangles and triangles public double computeNetArea(){ return 0; } // PART II //loop over all RightTriangle2 and Rectangle2 and print out //* area of each item // * if it's a RightTriangle print out the length of the hypotenuse public void printDetails() { } }