Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { private static int getMin(int... vals) { int min = Integer.MAX_VALUE; for (int i : vals) if (i < min) min = i; return min; } }