ShippingContainer.java
1    package Shapes;
2    import java.util.Scanner;
3    import shapes.SRectangle;
4    
5    
6    
7    public class ShippingContainer {
8        public static void main(String[] args) {
9            System.out.print("Please enter the length, width, and height of the shipping container: ");
10           Scanner scanner = new Scanner(System.in);
11           double length = scanner.nextDouble();
12           double width = scanner.nextDouble();
13           double height = scanner.nextDouble();
14           SRectangle Face = new SRectangle(height,width);
15           double height2 = Face.diagonal();
16           // new plain created for finding maximum diagonal line
17           SRectangle Key = new SRectangle(height2, length);
18           double distance = Key.diagonal();
19           System.out.println(" The Maximum size of the object in the shipping container is " + distance );
20   
21       }
22   }
23