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

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

Description

min

License

Apache License

Declaration

public static double min(double... nums) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static double min(double... nums) {
        if (nums.length == 0) {
            throw new IllegalArgumentException("Util.max() cannot be called with an empty array");
        }/*from  w w  w  .  j  av  a  2  s. c  om*/
        double min = Integer.MAX_VALUE;
        for (final double num : nums) {
            min = Math.min(min, num);
        }
        return min;
    }
}

Related

  1. min(double values[], int size)
  2. min(double... a)
  3. min(double... args)
  4. min(double... d)
  5. min(double... ds)
  6. min(double... value)
  7. min(double[] a)
  8. min(double[] a, double[] b)
  9. min(double[] arr)