scaawt

BoxTester

Oct 24th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.13 KB | None | 0 0
  1. /**
  2.  * written by tariq scott
  3.  */
  4. import java.util.Scanner;
  5. public class BoxTester {
  6.  
  7.   public static void main(String[] args) {
  8.   Scanner keyboard = new Scanner (System.in);
  9. //  System.out.println("Welcome to the box sorter!");
  10. //  System.out.println("Enter the information about boxes and I'll sort them!");
  11. //  System.out.println("Enter the label, length, width, and height (all feet) of box 1: Random Electronics" (i+1));
  12.  
  13.   String label = keyboard.nextLine();
  14.   double width = keyboard.nextDouble();
  15.   double length = keyboard.nextDouble();
  16.   double height = keyboard.nextDouble();
  17.  
  18.   for (int i =0; i < 3; i++)
  19.   System.out.println("Welcome to the box sorter!");
  20.   System.out.println("Enter the information about boxes and I'll sort them!");
  21.   System.out.println("Enter the label, length, width, and height (all feet) of box 1: Random Electronics");
  22.  
  23.   BoxTester.addBox(new Box(label,width,length,height));
  24.  
  25.   BoxManager.sortBox();
  26.    
  27.  System.out.println("Sorted Boxes: ");
  28.  System.out.println(label + "Volume: ");
  29.  System.out.println(label + "Volume: ");
  30.  System.out.println(label + "Volume: ");
  31. }
  32. }
Add Comment
Please, Sign In to add comment