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

Get minimum of 3 values

License

GNU General Public License

Declaration

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

Method Source Code

//package com.java2s;
// License: GPL. For details, see LICENSE file.

public class Main {
    /**/*from   ww w .j av a  2s . com*/
     * Get minimum of 3 values
     */
    public static int min(int a, int b, int c) {
        if (b < c) {
            if (a < b)
                return a;
            return b;
        } else {
            if (a < c)
                return a;
            return c;
        }
    }
}

Related

  1. min(int a, int b)
  2. min(int a, int b)
  3. min(int a, int b)
  4. min(int a, int b, int c)
  5. min(int a, int b, int c)
  6. min(int a, int b, int c)
  7. min(int a, int b, int c)
  8. min(int a, int b, int c)
  9. min(int a, int b, int c)