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.
I have also tried to use Collections to sort the arraylist and then print, but I can't seem to get it to work.
My arraylist is:
ArrayList<Transition> transitions = new ArrayList<Transition>();
When i tried to used Collections i used:
Object minValue = Collections.min(transitions);
Hope some of you can help :)