Java Array Max Value findMax2(int[] workArray, int idx, int max)

Here you can find the source of findMax2(int[] workArray, int idx, int max)

Description

find Max

License

Open Source License

Declaration

private static int findMax2(int[] workArray, int idx, int max) 

Method Source Code

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

public class Main {
    private static int findMax2(int[] workArray, int idx, int max) {
        if (idx <= 0)
            return max;
        return findMax2(workArray, idx - 1, Math.max(max, workArray[idx - 1]));
    }/* w  ww .  j  a v  a 2  s .co m*/
}

Related

  1. findMax(int a, int b, int c, int d)
  2. findMax(int[] array)
  3. findMax(int[] v)
  4. findMax(int[] workArray, int idx)
  5. findMax(T[] arr)
  6. findMaxAbs(float[] array)
  7. findMaxCommonPrefix(String path1, String path2)
  8. findMaxDiff(byte[] rand, byte[] newRand)
  9. findMaximumUnitFor(long elapsed, int specifiedMax)