title: Find max value in Java with a predefined comparator
body: <p>I have a <code>List&lt;Foo&gt;</code>, and a compare() method taking two Foo objects and returning the 'greater' one. Is there a built-in Java method that takes the list and finds the largest one?</p>