//  Data Structures with Java by John R. Hubbard
//  Copyright McGraw-Hill, 2001
//  Problem 5.4 on page 106

  public void clear()
  { // removes all the objects from this bag
    for (int i=0; i<size; i++)
      objects[i] = null;
    size = 0;
  }
