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

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

Description

max

License

LGPL

Declaration

public static double max(double... ds) 

Method Source Code

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

public class Main {
    public static double max(double... ds) {
        double maxv = ds[0];
        for (int i = 1; i < ds.length; i++) {
            maxv = Math.max(ds[i], maxv);
        }//from  w w  w.  j  a  va  2s.  co m
        return maxv;
    }
}

Related

  1. max(double array[], int start, int length)
  2. max(double values[])
  3. max(double values[], int size)
  4. max(double... a)
  5. max(double... arr)
  6. max(double... ds)
  7. max(double... elems)
  8. max(double... nums)
  9. max(double... values)