Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.programmer Subject: Re: Comparator? Date: Mon, 12 Dec 2011 07:28:08 -0800 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 12 Dec 2011 15:28:08 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="mz/LDSJwiWnk3Jnnqg7x+Q"; logging-data="5158"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199zzfmGyc88uXFAyzRL46w" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: Cancel-Lock: sha1:x9iUTlzKbAHOWgLFvJLkgTPalY4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10673 On 12/12/2011 1:05 AM, Roedy Green wrote: > On Sun, 11 Dec 2011 17:26:51 -0800, Knute Johnson > wrote, quoted or indirectly quoted someone > who said : > >> I've got a question about how to create a Comparator that I can use to >> keep a sorted list of objects > > see http://mindprod.com/applet/comparatorcutter.html > > Just fill in the blanks and it will generate you the Java code you > need. > > You could do thing with strings with the airport code in the first > three slots or with objects with an airport and City name String > field. Thanks Roedy, I'll take a look. -- Knute Johnson