Java Array Min Value min(double... d)

Here you can find the source of min(double... d)

Description

Min Value

License

Open Source License

Parameter

Parameter Description
d a parameter

Return

the min value in the array

Declaration

private static double min(double... d) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//  ww  w .j a  v  a2 s .  c om
     * Min Value
     *
     * @param d
     * @return the min value in the array
     */
    private static double min(double... d) {
        double result = Double.MAX_VALUE;
        for (double e : d) {
            result = Math.min(result, e);
        }

        return result;
    }
}

Related

  1. min(byte[] values)
  2. min(double values[], boolean[] mask)
  3. min(double values[], int size)
  4. min(double... a)
  5. min(double... args)
  6. min(double... ds)
  7. min(double... nums)
  8. min(double... value)
  9. min(double[] a)