Here you can find the source of min(int a, int b, int c)
public static final int min(int a, int b, int c)
//package com.java2s; //License from project: Open Source License public class Main { public static final int min(int a, int b, int c) { if (a > b) a = b;//w w w . j a va2 s .com if (a > c) a = c; return a; } public static final float min(float a, float b, float c) { if (a > b) a = b; if (a > c) a = c; return a; } public static final double min(double a, double b, double c) { if (a > b) a = b; if (a > c) a = c; return a; } public static final float min(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; } }