title: Treeset to order elements in descending order
body: <p>Here is the piece of code that I have used for Java 5.0</p>
  
  <pre><code>TreeSet&lt;Integer&gt; treeSetObj = new TreeSet&lt;Integer&gt;( Collections.reverseOrder() ) ;
  </code></pre>
  
  <p><strong>Collections.reverseOrder()</strong> is used to obtain a comparator in order to reverse the way the elements are stored and iterated. </p>
  
  <p>Is there a more optimized way of doing it?</p>