package shapes; import java.util.Scanner; public class ShippingContainer { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); System.out.println("Enter Length: "); double container = scanner.nextDouble(); System.out.println("enter width: "); double containerw = scanner.nextDouble(); System.out.println(" enter height: "); double containerh = scanner.nextDouble(); SRectangle rectangle = new SRectangle(container,containerh); SRectangle key = new SRectangle(rectangle.diagonal(), containerw); System.out.println(key.diagonal()); } }