Here you can find the source of MIN_MAX(int min, int mid, int max)
public static int MIN_MAX(int min, int mid, int max)
//package com.java2s; //License from project: Open Source License public class Main { public static int MIN_MAX(int min, int mid, int max) { return mid < min ? min : mid > max ? max : mid; }//from www .j a v a 2s. c o m }