Java Array Max Value maxFromDoubleArray(double[] arr)

Here you can find the source of maxFromDoubleArray(double[] arr)

Description

max From Double Array

License

Open Source License

Declaration

public static double maxFromDoubleArray(double[] arr) 

Method Source Code

//package com.java2s;

public class Main {
    public static double maxFromDoubleArray(double[] arr) {
        double max = Double.NEGATIVE_INFINITY;
        for (double d : arr) {
            if (d > max)
                max = d;/*from   w w w.  j  ava  2 s.co m*/
        }
        return max;
    }
}

Related

  1. maxElement(int[] array)
  2. maxElementIndex(final double[] array)
  3. maxElementIndex(final double[] array)
  4. maxElementIndex(final double[] array, final int endIndex)
  5. maxFloorDiv(int c, int... vals)
  6. maxIdx(int[] in)
  7. maximum(double[] list)
  8. maximum(float[] array)
  9. maximumDouble(double... values)