Java Array Max Value maxIn(double[] array)

Here you can find the source of maxIn(double[] array)

Description

max In

License

Open Source License

Declaration

public static double maxIn(double[] array) 

Method Source Code

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

public class Main {
    public static double maxIn(double[] array) {
        double max = -Double.MAX_VALUE;
        for (double val : array) {
            max = max < val ? val : max;
        }/*w  ww.  jav  a  2s .c  om*/
        return max;
    }
}

Related

  1. maxIdx(int[] in)
  2. maximum(double[] list)
  3. maximum(float[] array)
  4. maximumDouble(double... values)
  5. maximumOf(final int[] array)
  6. maxInArray(int[] src)
  7. maxInArray(int[] values)
  8. maxIndAbs(double[] a)
  9. maxIndex(double values[])