import java.io.PrintStream; import franck.cse5910.ShapeCollection; import franck.cse5910.Shape; public class PrintArea { public static void main(String[] args) { PrintStream output = System.out; double total = 0; ShapeCollection shapes = ShapeCollection.getRandom(); for (Shape shape : shapes) { total += shape.getArea(); } output.printf("%.2f%n", total); } }