Here you can find the source of minArray(int[] arr)
public static int minArray(int[] arr)
//package com.java2s; //License from project: Open Source License public class Main { public static int minArray(int[] arr) { int retVal = arr[0]; for (int i = 1; i < arr.length; i++) { if (arr[i] < retVal) retVal = arr[i];// w w w . ja v a2 s . co m } return retVal; } }