Java Array Max Value max(double... nums)

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

Description

max

License

Apache License

Declaration

public static double max(double... nums) 

Method Source Code

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

public class Main {
    public static double max(double... nums) {
        if (nums.length == 0) {
            throw new IllegalArgumentException("Util.max() cannot be called with an empty array");
        }/*www.  ja  v a  2 s. c  o  m*/
        double max = Integer.MIN_VALUE;
        for (final double num : nums) {
            max = Math.max(max, num);
        }
        return max;
    }
}

Related

  1. max(double... a)
  2. max(double... arr)
  3. max(double... ds)
  4. max(double... ds)
  5. max(double... elems)
  6. max(double... values)
  7. max(double... values)
  8. max(double... values)
  9. max(double[] a)