Here you can find the source of min(int a, int b, int c)
editDistance(String, String)
.
Parameter | Description |
---|---|
a | a parameter |
b | a parameter |
c | a parameter |
private static int min(int a, int b, int c)
//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; } }