This example will show how to find the smallest value in an arraylist using groovy. The years below represent loosing season by Wisconsin Badgers football team. The first snippet will use groovy's min() method which will return the smallest integer. The second snippet shows using java.util.Collections.min() which returns the minimum element of the given collection according to the natural ordering of its elements. The next snippet will display that min() is null aware which prevents the need to remove null elements from a collection. Finally, the last snippet shows how to pass a closure to determine a collection of strings with the smallest length. A comparable example demonstrates how to get the smallest value in arraylist in java using java 8, guava and apache commons.