Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.netfront.net!not-for-mail From: Wanja Gayk Newsgroups: comp.lang.java.programmer Subject: Re: How convert Iterator into Enumeration Date: Fri, 30 Nov 2012 20:23:42 +0100 Organization: Netfront http://www.netfront.net/ Lines: 22 Message-ID: References: NNTP-Posting-Host: 77.8.99.242 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1354303418 73876 77.8.99.242 (30 Nov 2012 19:23:38 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Fri, 30 Nov 2012 19:23:38 +0000 (UTC) User-Agent: MicroPlanet-Gravity/3.0.4 Xref: csiph.com comp.lang.java.programmer:20030 In article , Roedy Green (see_website@mindprod.com.invalid) says... > An Enumeration is a primitive time of Iterator. > > You could write some code that in the constructor took an Iterator and > behaved like an Enumerator. The Enumerator methods would make calls on > the corresponding Iterator methods. Be sure to evade the ConcurrentModificationException then. Kind regards, -Wanja- -- ..Alesi's problem was that the back of the car was jumping up and down dangerously - and I can assure you from having been teammate to Jean Alesi and knowing what kind of cars that he can pull up with, when Jean Alesi says that a car is dangerous - it is. [Jonathan Palmer] --- news://freenews.netfront.net/ - complaints: news@netfront.net ---