Here you can find the source of min(int[] array)
public static int min(int[] array)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w ww . j av a 2 s .c o m*/ * @return the min value in this array, */ public static int min(int[] array) { int minValue = array[0]; for (int aVector : array) { if (minValue > aVector) { minValue = aVector; } } return minValue; } /** * @return the minimum value in this array, */ public static long min(long[] array) { long minValue = array[0]; for (long aVector : array) { if (minValue > aVector) { minValue = aVector; } } return minValue; } /** * @return the minimum value in this array, */ public static double min(double[] array) { double minValue = array[0]; for (double aVector : array) { if (minValue > aVector) { minValue = aVector; } } return minValue; } }