From: Fu C. <col...@ho...> - 2004-10-01 20:49:40
|
Hi Peter I have two questions about StockApplication Example.First, what does "interator()" exactly mean? I'm confused about that. In this example, is it used to search the list object? The second question is also about that "for" loop. why you changed type of "next" to ValueChangListenerInterface type. I don't understand this. can you explain it. wait for your reply.Thanks. for (Iterator i = this.listeners.iterator(); i.hasNext();) { ValueChangeListenerInterface next = (ValueChangeListenerInterface) i.next(); //Let's inform the guy! next.notify(stock); Kind regards Colitas |