Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: iteration blues Date: Fri, 4 Nov 2011 10:46:01 -0700 (PDT) Organization: http://groups.google.com Lines: 21 Message-ID: <9866683.514.1320428761383.JavaMail.geo-discussion-forums@yqmj32> References: <9hhpttFi6sU1@mid.individual.net> Reply-To: comp.lang.java.programmer@googlegroups.com NNTP-Posting-Host: 2620:0:1000:2404:224:d7ff:fe69:5838 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1320429136 25244 127.0.0.1 (4 Nov 2011 17:52:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 Nov 2011 17:52:16 +0000 (UTC) In-Reply-To: <9hhpttFi6sU1@mid.individual.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:2404:224:d7ff:fe69:5838; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9524 Robert Klemme wrote: > I'm surprised nobody seems to mention Iterator.remove(). You must have missed: >> If your algorithm is (pseudocoded):=20 >>=20 >> for each item in collection=20 >> process item=20 >> delete item from collection=20 >>=20 >> you will need the iterator.=20 All right, yeah, it *did* require that one be at least minimally familiar w= ith 'java.util.Iterator' to understand exactly why "you will need the itera= tor", but every Java programmer from beginner onward surely is aware of 'It= erator#remove()', right? Surely no one calling themselves a Java programme= r could be ignorant of such a basic, fundamental, early concept in Java? C= ould they? --=20 Lew