1 package shapes; 2 import java.util.Random; 3 import java.util.Scanner; 4 public class ShippingContainer { 5 6 public static void main(String[] args) 7 { 8 Scanner scanner = new Scanner(System.in); 9 int rect1; 10 int area; 11 System.out.println("What is the height"); 12 int height = scanner.nextInt(); 13 System.out.println("What is the length"); 14 int length = scanner.nextInt(); 15 System.out.println("What is the width"); 16 int width = scanner.nextInt(); 17 rect1 = width ^ 2 + length ^ 2; 18 area = rect1 ^ 2 + height ^ 2; 19 System.out.println("The line is " + area + " mm long"); 20 21 22 } 23 } 24