Is there an easy way to get the max value from one field of an object in an arraylist of objects?
For example, out of the following object, I was hoping to get the h
You should iterate over the list comparing/finding the max value O(N). If you need to do this often replace the list with a PriorityQueue O(1) to find the max.
O(N)
O(1)