/**
 * Tests the SimpleBinCollection class
 * @author Robert Cohen
 */

public class BinCollectionDriver {
  public static void main( String[] args ) {
    int[] sizes = {6, 1, 5, 5, 3, 12, 4, 4, 3, 4, 1};
    SimpleBinCollection binRack = new SimpleBinCollection();
      for (int i = 0; i < sizes.length; i++) {
        Box b = new Box(i, sizes[i]);
          if (!binRack.addBox(b))
             System.out.println("Box too big: " + b );
      }
      System.out.println();
      System.out.println(binRack);
  }
}
