Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!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: Wed, 06 Jul 2011 18:58:42 -0500 Date: Wed, 06 Jul 2011 16:58:41 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: StringBuilder Difficulties References: <97hd9sFa1jU2@mid.individual.net> <97jiioFr6pU2@mid.individual.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 15 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.196.78 X-Trace: sv3-mMqzYLz8le5qYCrmQ30Lpf/hDfLQHahG9pUNyWaGXgvPSWqi7L8m3mWDw6ysYIa9m0EiQELvL/L4Eyv!RI41mb4lyvd76u46DGAhB7FLgEwIVHkscxhA+6Zx7Xx8/+57bbXgFNd1fD5MvAIWWpt6cPnAbUHS!vnJRpJGHPoU6NAAugT46yCw9UGWPIjssAPSlnMTJNzkx+A== 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: 2009 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5929 On 7/6/2011 4:52 PM, supercalifragilisticexpialadiamaticonormalizeringelimatisticantations wrote: ... > The foreach syntax can also be used with arrays, including arrays of > unboxed primitives, even though using reflection on an array (e.g. (new > Object[3]).getClass().getInterfaces();) only shows it implementing > Cloneable and Serializable, not Iterable. The JLS says that the enhanced for statement expression "must either have type Iterable or else it must be of an array type (§10.1), or a compile-time error occurs." [http://java.sun.com/docs/books/jls/third_edition/html/statements.html#14.14.2] Patricia