Here you can find the source of min(List
public static float min(List<Float> values)
//package com.java2s; //License from project: LGPL import java.util.List; public class Main { public static float min(List<Float> values) { float min = values.get(0); for (int i = 1; i < values.size(); i++) { min = Math.min(min, values.get(i)); }/*from w w w . ja v a 2s .c om*/ return min; } }