//  Data Structures with Java by John R. Hubbard
//  Copyright McGraw-Hill, 2001
//  Example 5.6 on page 100
//  Testing the add() method for the Bag class

public class Ex0506
{ public static void main(String[] args)
  { String[] food = { "egg", "ham", "rum", "tea" };
    Bag foodBag = new Bag(food);
    System.out.println(foodBag);
    foodBag.add("fig");
    System.out.println(foodBag);
  }
}
