Java Number Min Value min(int a, int b, int c)

Here you can find the source of min(int a, int b, int c)

Description

min

License

Open Source License

Declaration

public static final int min(int a, int b, int c) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final int min(int a, int b, int c) {
        if (a > b)
            a = b;//w w w  .  j a  va2 s .com
        if (a > c)
            a = c;
        return a;
    }

    public static final float min(float a, float b, float c) {
        if (a > b)
            a = b;
        if (a > c)
            a = c;
        return a;
    }

    public static final double min(double a, double b, double c) {
        if (a > b)
            a = b;
        if (a > c)
            a = c;
        return a;
    }

    public static final float min(float a, float b, float c, float d) {
        if (a > b)
            a = b;
        if (a > c)
            a = c;
        if (a > d)
            a = d;
        return a;
    }
}

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 a, int b, int c)
  5. min(int a, int b, int c)
  6. min(int idx, int orderFrom, int orderTo)
  7. min(int int1, int int2)
  8. min(int num1, int num2, int num3)
  9. min(int number1, int number2)