import java.util.*;

public class IteratorExample
{
    ArrayList         employees;
    //HashSet           employees;    

    public IteratorExample()
    {
       employees = new ArrayList();
       //employees = new HashSet();

       // Populate the collection
    }
    

    public void printEmployees(Collection c)
    {
       Iterator      i;
       
       i = c.iterator();
       while (i.hasNext())
       {
          System.out.println(i.next());          
       }
    }
    
}
