ShippingContainer.java
1    package shapes;
2    import java.util.Scanner;
3    
4    public class ShippingContainer {
5        public static void  main(String[] args){
6            int length,width,height;
7            Scanner scanner= new Scanner(System.in);
8            System.out.println("Enter the length");
9            length= scanner.nextInt();
10           System.out.println("Enter the width");
11           width= scanner.nextInt();
12           System.out.println("Enter the height");
13           height=scanner.nextInt();
14           SRectangle key= new SRectangle(length,width);
15           SRectangle face= new SRectangle(key.diagonal() ,height);
16           double distance= face.diagonal();
17           System.out.println("Area of face="+face);
18           System.out.println("Area of key="+key);
19           System.out.println("Length of distance from corner to corner"+distance);
20   
21   
22   
23   
24   
25   
26       }
27   }
28