Thursday, March 15, 2012 08:10 AM
I am trying to find th maximum element of my ArrayList using the collections.max(ArrayList) command. This works fine for a list with single comparable values, however I have in my list which contain three traits (ID, age, weight). How would I find the entry with the maximum age for instance?
Thank you for your help