Here you can find the source of arrayMin(int[] property)
public static int arrayMin(int[] property)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { public static int arrayMin(int[] property) { int[] copy = property.clone(); int min = 0; int numElements = copy.length; Arrays.sort(copy);/*from w ww. j av a 2 s . co m*/ if (numElements > 0) min = copy[0]; return min; } }