Java Number Min Value min(int num1, int num2, int num3)

Here you can find the source of min(int num1, int num2, int num3)

Description

min

License

Apache License

Declaration

public static int min(int num1, int num2, int num3) 

Method Source Code

//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;
    }
}

Related

  1. min(int a, int b, int c)
  2. min(int a, int b, int c)
  3. min(int a, int b, int c)
  4. min(int idx, int orderFrom, int orderTo)
  5. min(int int1, int int2)
  6. min(int number1, int number2)
  7. min(int one, int two, int three)
  8. min(int value, int min)
  9. min(int x, int x2, int x3)