Getting max value from an arraylist of objects?

Use a Comparator with Collections.max() to let it know which is greater in comparison.


Also See

Leave a Comment