Here you can find the source of maxPrim(final int... numbers)
public static int maxPrim(final int... numbers)
//package com.java2s; //License from project: Open Source License public class Main { public static int maxPrim(final int... numbers) { int max = Integer.MIN_VALUE; for (final int n : numbers) { max = Math.max(max, n); }// w w w . j av a2 s .c o m return max; } public static Number max(final Number... numbers) { double max = Double.MIN_VALUE; for (final Number n : numbers) { final double d = n.doubleValue(); max = Math.max(max, d); } return max; } }