Here you can find the source of median(float a, float b, float c)
public static float median(float a, float b, float c)
//package com.java2s; //License from project: Open Source License public class Main { public static float median(float a, float b, float c) { return (a <= b) ? ((b <= c) ? b : ((a < c) ? c : a)) : ((a <= c) ? a : ((b < c) ? c : b)); }//from w w w. j a v a 2s . co m }