package shapes; import java.awt.*; import java.util.Scanner; public class ShippingContainer { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Please give a integer for the Width, Length, and Height"); //Retrieval of the integers given by user int width = scanner.nextInt(); int length = scanner.nextInt(); int height = scanner.nextInt(); //Output of the Scanner2 System.out.println("Width = " + width); System.out.println("Length = " + length); System.out.println("Height =" + height); //Face SRectangle face = new SRectangle(length, width); System.out.println("face = " + face); double key = face.diagonal(); //key SRectangle distance = new SRectangle(key, height); System.out.println("distance =" + distance.diagonal()); } }