ShippingContainer.java
import shapes.SRectangle;

import java.util.Scanner;

public class ShippingContainer {
    public static void main(String[] args){

         int  side_lenth_lenth = Ask_For_Number("what is the length of your shipping container ? ");
         int  side_lenth_hight = Ask_For_Number("what is the hight of your shipping container ? ");
         int  side_lenth_wigth = Ask_For_Number("what is the wigth of your shipping container ? ");

        SRectangle face = new SRectangle( side_lenth_hight, side_lenth_lenth);

        double key = face.diagonal();
        SRectangle key_rectangle = new SRectangle(key,side_lenth_wigth );
        System.out.println("the key is = " + key);
        double distance = key_rectangle.diagonal();
        System.out.println("the lenth if the largest obect is = " + distance);
    }

    private static int Ask_For_Number(String message){
        int resval = -1;

        while (resval <= 0) {

            System.out.println(message);
            Scanner temp_scan = new Scanner(System.in);
            String temp_str = temp_scan.nextLine();
            try {
                resval = Integer.parseInt(temp_str.trim());
            } catch (NumberFormatException nfe) {
                System.out.printf("Invald \nEnter neumaeric vaule");
            }
        }
        return resval;

    }

}