ShippingContainer.java
1    package shapes;
2    import java.util.Scanner;
3    public class ShippingContainer {
4        public static void main(String[] args) {
5            Scanner scanner = new Scanner(System.in);
6            System.out.println("Enter three integer values for width, length, and height respectively:");
7            int width = scanner.nextInt();
8            int length = scanner.nextInt();
9            int height = scanner.nextInt();
10   
11           SRectangle face = new SRectangle(length, width);
12           double keyWidth = face.diagonal();
13           SRectangle key = new SRectangle(height, keyWidth);
14           double distance = key.diagonal();
15           System.out.println("The distance between the far corners: " + distance);
16       }
17   }
18