Here you can find the source of min(List
public static double min(List<Double> l)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static double min(List<Double> l) { double min = Double.MAX_VALUE; for (Double d : l) if (d < min) min = d;/*from ww w .j ava 2 s. c o m*/ return min; } }