Java Array Max Value findMax(double[] arr)

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

Description

find Max

License

Apache License

Declaration

public static double findMax(double[] arr) 

Method Source Code

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

public class Main {
    public static double findMax(double[] arr) {
        double max = arr[0];
        for (int i = 0; i < arr.length; i++) {
            if (max < arr[i]) {
                max = arr[i];/*from   ww  w. ja va 2  s  . c  om*/
            }
        }
        return max;
    }
}

Related

  1. arrayMax(double[] x)
  2. arrayMax(final int[] array)
  3. arrayMax(int[] property)
  4. arrayMaximum(int[] array)
  5. findMax(double newNumber, double currentMax)
  6. findMax(double[] u, int startU, int length)
  7. findMax(double[] u, int startU, int length)
  8. findMax(double[] values)
  9. findMax(int a, int b, int c, int d)