Here you can find the source of min(int... vals)
public static int min(int... vals)
//package com.java2s; //License from project: Apache License public class Main { public static int min(int... vals) { int min = vals[0]; for (int val : vals) { min = (val < min) ? val : min; }/* w w w .j ava2 s . c o m*/ return min; } }