Here you can find the source of min(Collection
public static Number min(Collection<Number> list)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static Number min(Collection<Number> list) { Number min = list.iterator().next(); for (Number item : list) { if (item.floatValue() < min.floatValue()) { min = item;//from www .j av a 2s. co m } } return min; } }