Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Inserting In a List Date: Tue, 02 Apr 2013 18:22:55 -0400 Organization: A noiseless patient Spider Lines: 12 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 2 Apr 2013 22:20:38 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="0d73d8cc209bff1c6395088b400d0605"; logging-data="15827"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183U/EccHGUKLbui6Kwr/c4" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: Cancel-Lock: sha1:0aKbIgXFIrTFpmEzZFkhaGLgcf8= Xref: csiph.com comp.lang.java.programmer:23196 On 4/2/2013 5:06 PM, Martin Gregorie wrote: >[...] > Its also not clear to me whether the OP is expecting some form of sorted > list of filenames. If he is expecting that, it would be best to use a > TreeMap rather than an ArrayList to store the filenames. Is there a reason to prefer TreeMap (or other SortedMap) over accumulate-disordered-and-sort-afterward? -- Eric Sosman esosman@comcast-dot-net.invalid