package w4; public class ShapeUtil { public static void printArea(Shape shape){ System.out.printf("图形面积:%.2f%n",shape.getArea()); } }