Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!nuzba.szn.dk!pnx.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Dirk Bruere at NeoPax Newsgroups: comp.lang.java.programmer Subject: Re: Initializing from context passing Date: Sun, 24 Apr 2011 01:17:59 +0100 Organization: Dirk Bruere at Neopax Lines: 26 Message-ID: <91h8hcFlmbU1@mid.individual.net> References: <91ga4tF38vU1@mid.individual.net> <91gnv8F6ooU1@mid.individual.net> Reply-To: dirk.bruere@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net XlL1PL7mvjwNCAfu0WKhRQ7iT928fYZt2pHWpLIR26Lz/HzXXm Cancel-Lock: sha1:mGNPlOxTTFQRKsCCdku94oHIDM0= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3226 On 23/04/2011 23:35, Lew wrote: > On 04/23/2011 03:34 PM, Dirk Bruere at NeoPax wrote: >> Daniele Futtorovic wrote: >>> And do use interface types rather than implementations, unless you >>> specifically rely on a detail of the implementation (which is often a >>> bad sign). That is, make it a List, not an ArrayList. >> >> I would appreciate a pointer to an example. >> Everything I have come across in the Android examples I have seen uses >> ArrayAdapter > > They said to use 'List' instead of 'ArrayList', not instead of > 'ArrayAdapter'! > > It makes absolutely no sense, and would not compile, to use 'List' in > lieu of 'ArrayAdapter', n'est-ce pas? > True, my mistake. But having said that, all the examples I have seen use ArrayList and not List -- Dirk http://www.neopax.com/technomage/ - My new book - Magick and Technology