Finding the max/min value in an array of primitives using Java
Using Commons Lang (to convert) + Collections (to min/max) Note that Arrays.asList() wraps the underlying array, so it should not be too memory intensive and it should not perform a copy on the elements of the array.