Java Array Max Value max(double[] data)

Here you can find the source of max(double[] data)

Description

max

License

Apache License

Declaration

public static double max(double[] data) 

Method Source Code

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

public class Main {
    public static double max(double[] data) {
        double m = Double.NEGATIVE_INFINITY;
        for (int i = 0; i < data.length; i++)
            if (data[i] > m)
                m = data[i];//from   www. jav a2s. com
        return m;
    }
}

Related

  1. max(double[] array)
  2. max(double[] array)
  3. max(double[] array)
  4. max(double[] array)
  5. max(double[] array)
  6. max(double[] data)
  7. max(double[] list)
  8. max(double[] matrix)
  9. max(double[] series)