Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static double min(double... vals) { double min = Double.MAX_VALUE; for (double d : vals) if (min > d) min = d; return min; } }