Here you can find the source of max(int x, int x2, int x3)
public static int max(int x, int x2, int x3)
//package com.java2s; //License from project: Open Source License public class Main { public static int max(int x, int x2, int x3) { return x > x2 ? (x > x3 ? x : x3) : (x2 > x3 ? x2 : x3); }/* w w w . j a v a2 s . c om*/ }