package shapes; import javax.swing.JOptionPane; import javax.swing.SwingUtilities; import java.util.Scanner; public class ShippingContainer { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Length:"); double length = sc.nextDouble(); System.out.print("Width:"); double width = sc.nextDouble(); System.out.print("Height:"); double height = sc.nextDouble(); SRectangle face = new SRectangle(length,width); SRectangle key= new SRectangle(face.diagonal(), width); double distance= key.diagonal(); System.out.println("Length of Diagonal="+distance); } }