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

A helper method for editDistance(String, String).

License

Open Source License

Parameter

Parameter Description
a a parameter
b a parameter
c a parameter

Return

the minimum of the given integer

Declaration

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

Method Source Code

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

public class Main {
    /**/* w ww .j  a v  a  2  s .  co  m*/
     * A helper method for <code>editDistance(String, String)</code>.
     * @param a
     * @param b
     * @param c
     * @return the minimum of the given integer
     */
    private static int min(int a, int b, int c) {

        int mi;

        mi = a;

        if (b < mi) {
            mi = b;
        }
        if (c < mi) {
            mi = c;
        }
        return mi;

    }
}

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