<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: jemini_fr: tri</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Trier un ArrayList</title>
        <link>http://www.posteet.com/view/735</link>
        <description>
        <![CDATA[<pre>ArrayList&lt;Object&gt; list = new ArrayList&lt;Object&gt;();
...
//tri
Collections.sort(list, new Comparator(){
    public int compare(Object o1, Object o2) {
       return o1.compareTo(o2);
    }
});

Ecrire la fonction compareTo() pour l'objet de la liste. Elle doit renvoyer 0 si les 2 objets sont égaux, &lt;0 si o1 &lt; o2 et &gt;0 si o1&gt;o2.</pre> <a href="http://www.posteet.com/tags/java">[java]</a>  <a href="http://www.posteet.com/tags/tri">[tri]</a> ]]>        </description>
        <dc:creator>jemini_fr</dc:creator>
        <pubDate>Thu, 07 Feb 2008 09:40:57 +0000</pubDate>

            <category>java</category>
            <category>tri</category>
    
    </item>


</channel>
</rss>
