Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?ISO-8859-1?Q?Sven_K=F6hler?= Newsgroups: comp.lang.java.programmer Subject: Re: lectures about "programming methodology" Date: Mon, 06 May 2013 17:24:29 +0300 Lines: 37 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.dfncis.de OBXVapfK3N6S0BSXlBySuwamb2BZyplonoVXlzmOYn6zXR3KYFR/PzuBtp Cancel-Lock: sha1:ufoWCdwehcK8ybMTHu/7MO2TOM4= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:23852 On 05/06/2013 05:18 PM, Stefan Ram wrote: > Sven Köhler writes: >> To be honest, the notion "anonymous vairable" is really not necessary to >> understand how arrays work - and to be honest, your posting is the first >> time I read that term. > > The JLS, while being technical, actually sometimes is quite > easy to read: Subtext? > One can open the table of contents, spot chapter »10. Arrays«, > and immediately read near the very beginning of that chapter: > > »An array object contains a number of variables.« (JLS7 10) > > »The variables contained in an array have no names« (JLS7 10) | > > The expression »new int[ 3 ]« has as its value an array of three | > variables, but neither this object nor those variables have > a name. So apparently I haven't read that part of the JLS. And neither has the lecturer. And this might me the shock: most people and most lecturers haven't read the JLS. At least to my experience. >> I know that you are particular precise about thing, but I'm pretty sure, >> he will teach that arrays have elements. > > »These variables are called the components of the array.« (JLS7 10) Well ... So what did the lecturer call them? Regards, SVen