Here you can find the source of minPrim(final int... numbers)
public static int minPrim(final int... numbers)
//package com.java2s; //License from project: Open Source License public class Main { public static int minPrim(final int... numbers) { int min = Integer.MAX_VALUE; for (final int n : numbers) { min = Math.min(min, n); }//w ww . ja va 2s . c om return min; } public static Number min(final Number... numbers) { double min = Double.MAX_VALUE; for (final Number n : numbers) { final double d = n.doubleValue(); min = Math.min(min, d); } return min; } }