1 package shapes; 2 3 public class WhiteArea { 4 5 public static void main(String[] args) { 6 SSquare die = new SSquare(0.75); 7 8 //(Each die dot is one-eighth the edge length) 9 SCircle dot = new SCircle((0.75/8)/2); 10 11 //(6 faces on the standard die) 12 System.out.println("area of 6 faces =" + die.area()*6); 13 14 //(21 dots total on a single die) 15 System.out.println("area of 21 dots =" + dot.area()*21); 16 17 System.out.println("area of white area =" + ((die.area()*6)-(dot.area()*21))); 18 } 19 } 20