Java List Min findMin(List values)

Here you can find the source of findMin(List values)

Description

find Min

License

Open Source License

Declaration

static public double findMin(List<Double> values) 

Method Source Code

//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;
    }
}

Related

  1. findMin(List nums)
  2. getMin(List numList)
  3. getMin(List aList)
  4. getMin(List d)
  5. getMin(List numbers)