ShapesThing.java
1    /* 
2    * Program that affords opportunities to explore the computational solution to simple geometrical problems by means of 
3    * the construction and use of shapes 
4    */
5    
6    package shapes;
7    
8    public class ShapesThing {
9        public static void main(String[] args) {
10           SSquare square = new SSquare(400);
11           System.out.println("square = " + square.toString());
12           System.out.println("area of square = " + square.area());
13           System.out.println("perimeter of square = " + square.perimeter());
14           System.out.println("diagonal of square = " + square.diagonal());
15   
16           SCircle disk = square.inscribingCircle();
17           System.out.println("disk = " + disk.toString());
18           System.out.println("area of circle = " + disk.area());
19           System.out.println("perimeter of circle = " + disk.perimeter());
20   
21           SSquare diamond = disk.inscribingSquare();
22           System.out.println("diamond = " + diamond.toString());
23           System.out.println("area of diamond = " + diamond.area());
24   
25       }
26   
27   
28   
29   }
30