Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * written by tariq scott
- */
- import java.util.Scanner;
- public class BoxTester {
- public static void main(String[] args) {
- Scanner keyboard = new Scanner (System.in);
- // System.out.println("Welcome to the box sorter!");
- // System.out.println("Enter the information about boxes and I'll sort them!");
- // System.out.println("Enter the label, length, width, and height (all feet) of box 1: Random Electronics" (i+1));
- String label = keyboard.nextLine();
- double width = keyboard.nextDouble();
- double length = keyboard.nextDouble();
- double height = keyboard.nextDouble();
- for (int i =0; i < 3; i++)
- System.out.println("Welcome to the box sorter!");
- System.out.println("Enter the information about boxes and I'll sort them!");
- System.out.println("Enter the label, length, width, and height (all feet) of box 1: Random Electronics");
- BoxTester.addBox(new Box(label,width,length,height));
- BoxManager.sortBox();
- System.out.println("Sorted Boxes: ");
- System.out.println(label + "Volume: ");
- System.out.println(label + "Volume: ");
- System.out.println(label + "Volume: ");
- }
- }
Add Comment
Please, Sign In to add comment