return min(min(a,b), min(c,d)); } public static int min(int a, int b) { int m2; if (a < b) a = m2; else b = m2; return m2; }