I\'ve got List dynamics. And I want to get max result using Collections. This is my code:
List dynamics
Collections
List dynamics=spy
It's a very old post, but if it benefits anyone, we can do something like this:
Long max=((BigInteger) Collections.max(dynamics)).longValue();