Java Array Min Value findMin2(int[] workArray, int idx, int min)

Here you can find the source of findMin2(int[] workArray, int idx, int min)

Description

find Min

License

Open Source License

Declaration

private static int findMin2(int[] workArray, int idx, int min) 

Method Source Code

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

public class Main {
    private static int findMin2(int[] workArray, int idx, int min) {
        if (idx <= 0)
            return min;
        return findMin2(workArray, idx - 1, Math.min(min, workArray[idx - 1]));
    }//from  w w  w  . java2s.  c o  m
}

Related

  1. arrayMin(final double[] array)
  2. arrayMin(int[] property)
  3. findMin(float[] array)
  4. findMin(int[] workArray, int idx)
  5. findMin(String[] strs)
  6. findMinAndMax(double[] array)
  7. findMinAndMax(float[] buffer, int pixelStride, int numBands)
  8. findMinDiff(double[] values)
  9. findMinIndex(double[] arr, int offset, int length)