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