Here you can find the source of min(int num1, int num2, int num3)
public static int min(int num1, int num2, int num3)
//package com.java2s; //License from project: Apache License public class Main { public static int min(int num1, int num2, int num3) { int min = num1; if (num2 < min) { min = num2;/*from w w w .ja v a 2 s . c o m*/ } if (num3 < min) { return num3; } return min; } public static double min(double num1, double num2, double num3) { double min = num1; if (num2 < min) { min = num2; } if (num3 < min) { return num3; } return min; } }