Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static float fmin(final float... values) { float min = Float.MAX_VALUE; for (final float v : values) { min = Math.min(v, min); } return min; } public static int min(final int... values) { int min = Integer.MAX_VALUE; for (final int v : values) { min = Math.min(v, min); } return min; } }