import java.util.ArrayList; public class InteractiveMath3 { ArrayList shapes; public InteractiveMath3(){ shapes = new ArrayList(); } //loop through each object and call their various 'render' methods public void paintShapes(){ } //@ returns the area of all of the circles and all of the rectangles and triangles public double computeNetArea(){ double r =0; for( int i = 0 ;i< shapes.size() ;i ++) { r += shapes.get(i).getArea(); } return r; } }