Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10659

Re: Comparator?

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Comparator?
Date 2011-12-12 01:05 -0800
Organization Canadian Mind Products
Message-ID <qqgbe719blhm4342gksgnti30pu7gr4f5e@4ax.com> (permalink)
References <jc3l8r$rj6$1@dont-email.me>

Show all headers | View raw


On Sun, 11 Dec 2011 17:26:51 -0800, Knute Johnson
<nospam@knutejohnson.com> 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.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
For me, the appeal of computer programming is that
even though I am quite a klutz,
I can still produce something, in a sense
perfect, because the computer gives me as many
chances as I please to get it right.
 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Comparator? Knute Johnson <nospam@knutejohnson.com> - 2011-12-11 17:26 -0800
  Re: Comparator? Patricia Shanahan <pats@acm.org> - 2011-12-11 18:16 -0800
    Re: Comparator? Knute Johnson <nospam@knutejohnson.com> - 2011-12-12 07:27 -0800
  Re: Comparator? Roedy Green <see_website@mindprod.com.invalid> - 2011-12-12 01:05 -0800
    Re: Comparator? Knute Johnson <nospam@knutejohnson.com> - 2011-12-12 07:28 -0800

csiph-web