ShapesThing.java
1    /* 
2     * This program will allow me to solve geometric problems by making and using shapes 
3     */
4    package expressions;
5    
6    import shapes.SCircle;
7    import shapes.SSquare;
8    
9    public class ShapesThing {
10       public static void main(String[]args) {
11           SSquare square = new SSquare(400);
12           System.out.println("square = " + square.toString());
13           System.out.println("area of square = " + square.area());
14           System.out.println("perimeter of square = " + square.perimeter());
15           System.out.println("diagonal of square = " + square.diagonal());
16   
17       //Computations on a Circle
18           SCircle disk = square.inscribingCircle();
19           System.out.println("disk = " + disk.toString());
20           System.out.println("area of disk = " + disk.area());
21           System.out.println("perimeter of disk = " + disk.perimeter());
22   
23       //Another square
24           SSquare diamond = disk.inscribingSquare();
25           System.out.println("diamond = " + diamond.toString());
26           System.out.println("diamond = " + diamond.area());
27   
28   
29   
30       }
31   }
32