Here you can find the source of min(int... array)
public static int min(int... array)
//package com.java2s; // The license under which this software is released can be accessed at: public class Main { public static int min(int... array) { if (array.length == 0) { return 0; }//from w ww . j av a2 s .c om int value = array[0]; for (int tmp : array) { if (tmp < value) { value = tmp; } } return value; } }