// Fig 6.11, pg 195
public static void printCollection
(Collection c)
{
Iterator itr = c.iterator();
while (itr.hasNext())
System.out.println(itr.next());
}