//  Data Structures with Java by John R. Hubbard
//  Copyright McGraw-Hill, 2001
//  Problem 5.12 on page 108

  public String toString()
  { // returns a String that shows the contents of this bag
    String s="{ ";
    if (size>0) s += this.objects[0];
    for (int i=1; i<size; i++)
      s += ", " + this.objects[i];
    return s + " }";
  }
