1 package shapes; 2 3 import java.util.Scanner; 4 5 public class ShippingContainer { 6 public static void main(String[] args){ 7 Scanner scanner = new Scanner(System.in); 8 // Inputs 9 System.out.print("Enter the Width: "); 10 int width = scanner.nextInt(); 11 System.out.print("Enter the Height: "); 12 int height = scanner.nextInt(); 13 System.out.print("Enter the Length: "); 14 int length = scanner.nextInt(); 15 // Rectangles 16 SRectangle face = new SRectangle(width, height); 17 SRectangle key = new SRectangle(face.diagonal(), length); 18 double distance = key.diagonal(); 19 System.out.print("The max length is " + distance); 20 } 21 } 22