title: Arraylist of objects - smallest value
body: <p>I have an arraylist of objects, and the objects have "double" values. I need to print out all the objects, and have the object with the highest value printed first, and the object with the lowest value last. </p>
  
  <p>I have also tried to use Collections to sort the arraylist and then print, but I can't seem to get it to work. </p>
  
  <p>My arraylist is:</p>
  
  <pre><code>ArrayList&lt;Transition&gt; transitions = new ArrayList&lt;Transition&gt;();
  </code></pre>
  
  <p>When i tried to used Collections i used:</p>
  
  <pre><code>Object minValue = Collections.min(transitions);
  </code></pre>
  
  <p>Hope some of you can help :) </p>