Here you can find the source of max(int... values)
public static int max(int... values)
//package com.java2s; // The license under which this software is released can be accessed at: public class Main { public static int max(int... values) { int tmp = values[0]; for (int i = 1; i < values.length; i++) { if (values[i] > tmp) { tmp = values[i];/* w w w . ja va2 s . com*/ } } return tmp; } }