listeners.add (l);
Iterator it = listeners.iterator(); while (it.hasNext()) { TestEventListener l = (TestEventListener) it.next(); l.handleEvent (o); }
PathologicalIteratingEventSource pies = new PathologicalIteratingEventSource(); pies.test();
listeners.remove (l);