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