ShipContainer.java
package shapes;

import java.util.Scanner;

public class ShipContainer {
    public static void main(String[] args) {
        double width = width();
        double length = length();
        double height = height();
        double distance = keydiagonal(width, length, height);
        System.out.println("The longest object that can put into the shipping container" + distance + "units");
    }
        private static int width(){
            System.out.print("Enter the width, in units, of the shipping container: ");
            Scanner scannerWidth = new Scanner(System.in);
            int width = scannerWidth.nextInt();
            return width;
            }

        private static int length(){
            System.out.print("Enter the length, in units, of the shipping container: ");
            Scanner scannerLength = new Scanner(System.in);
            int length = scannerLength.nextInt();
            return length;
            }

        private static int height() {
            System.out.print("Enter the height, in units, of the shipping container: ");
            Scanner scannerHeight = new Scanner(System.in);
            int height = scannerHeight.nextInt();
            return height;


    }
         private static double keydiagonal(double width, double length, double height) {
             SRectangle face = new SRectangle(width, length);
             double keylength = face.diagonal();
             SRectangle key = new SRectangle(height, keylength);
             double distance = key.diagonal();
             return distance;
         }
         }