//  Data Structures with Java by John R. Hubbard
//  Copyright McGraw-Hill, 2001
//  Problem 5.1 on page 106

  public Bag(int capacity)
  { // constructs an empty bag with the given capacity
    objects = new Object[capacity];
  }
  