/home/ffrigin/NetBeansProjects/CS1/src/shapes/TheRoom.java
 1 /*
 2  * getting the distance from one corner of a room to the far corner.
 3  */
 4 package shapes;
 5 
 6 /**
 7  *
 8  * @author ffrigin
 9  */
10 public class TheRoom {
11 
12     /**
13      * @param args the command line arguments
14      */
15     public static void main(String[] args) {
16         SRectangle face = new SRectangle(21, 14);
17         SRectangle key = new SRectangle(9, face.diagonal());
18         double distance = key.diagonal();
19         System.out.println("The distance from far corners = " + distance);
20 
21     }
22 
23 }
24