Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?



On Fri, 23 May 2008 08:14:04 -0400, Lew <conrad@xxxxxxxxxxxxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

Aha. So you mean

public class Foo implements Comparable <Foo>
{ ... }

If you leave off the "<Foo>" you get a raw type warning.

Nearly always I just give a brief summary of what I explain at the
link, in this case
http://mindprod.com/jgloss/comparable.html
and
http://mindprod.com/jgloss/sort.html
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages