Here you can find the source of min(int a, int b, int c)
public static int min(int a, int b, int c)
//package com.java2s; // License: GPL. For details, see LICENSE file. public class Main { /**/*from ww w .j av a 2s . com*/ * Get minimum of 3 values */ public static int min(int a, int b, int c) { if (b < c) { if (a < b) return a; return b; } else { if (a < c) return a; return c; } } }