Here you can find the source of max(int a, int b, int c, int d)
public static int max(int a, int b, int c, int d)
//package com.java2s; // License: GPL. For details, see LICENSE file. public class Main { public static int max(int a, int b, int c, int d) { return Math.max(Math.max(a, b), Math.max(c, d)); }//from ww w . ja v a 2 s . co m }