Here you can find the source of min(List
public static double min(List<Double> data)
//package com.java2s; //License from project: Open Source License import java.util.Collections; import java.util.List; public class Main { public static double min(List<Double> data) { Collections.sort(data);//from ww w . jav a 2 s. c o m int n = data.size(); return data.get(0); } }