Here you can find the source of max(int a, int b, int c)
public static final int max(int a, int b, int c)
//package com.java2s; //License from project: Open Source License public class Main { public static final int max(int a, int b, int c) { if (a < b) a = b;/* w w w . ja va 2 s .c o m*/ if (a < c) a = c; return a; } public static final float max(float a, float b, float c) { if (a < b) a = b; if (a < c) a = c; return a; } public static final double max(double a, double b, double c) { if (a < b) a = b; if (a < c) a = c; return a; } public static final float max(float a, float b, float c, float d) { if (a < b) a = b; if (a < c) a = c; if (a < d) a = d; return a; } }