ShippingContainer.java
package Shapes;

import shapes.SRectangle;

import javax.swing.*;
import java.util.Scanner;

public class ShippingContainer {

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                new ShippingContainer();

            }
        });

        System.out.println("Insert values of the lengths with xAxis and yAxis, subsequently");
        Scanner ruler = new Scanner(System.in);
        double xAxis = ruler.nextDouble();
        double yAxis = ruler.nextDouble();

        SRectangle face = new SRectangle(yAxis,xAxis);
        double distance = face.diagonal();

        System.out.println("The length = " + xAxis);
        System.out.println("The height = " + yAxis);
        System.out.println("The length of diagonal of the container = " + distance);

    }


}