Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 01 May 2012 09:45:24 -0500 Date: Tue, 01 May 2012 07:45:26 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: iteration References: <27598671.190.1335882575014.JavaMail.geo-discussion-forums@ynbq3> In-Reply-To: <27598671.190.1335882575014.JavaMail.geo-discussion-forums@ynbq3> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 15 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.201.141 X-Trace: sv3-xndZoG3M6ebyi6UcxMQG/3Axwt5yp3yOcPe0eM4AajHsoLT+q7M/KGRVu9+yL1Xh41xbCh9JjFS7tVl!EFwxyXgudFrravl5odo6R8midkWa3vgMuBI1QmDlDeSZWpfe2tnQBhhjqc5IRGCIKuwKKjf+VoEv!hm02viM/R7MdDKT/lSqR0JtYzKBQP9zqOOAZVTR6TjBPz3Y= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1498 Xref: csiph.com comp.lang.java.programmer:14075 On 5/1/2012 7:29 AM, bob wrote: > What's the name of this type of iteration in Java? > > for (Player p : players) > { > > } > > I haven't seen this until recently. "enhanced for statement" See http://docs.oracle.com/javase/specs/jls/se7/html/jls-14.html#jls-14.14.2 Patricia