Here you can find the source of findMin2(int[] workArray, int idx, int min)
private static int findMin2(int[] workArray, int idx, int min)
//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 }