Here you can find the source of findMin(int a, int b, int c, int d)
private static int findMin(int a, int b, int c, int d)
//package com.java2s; /******************************************************************************* * Copyright (c) 2010-2012 ITER Organization. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html ******************************************************************************/ public class Main { private static int findMin(int a, int b, int c, int d) { int result = Math.min(a, b); result = Math.min(result, c); result = Math.min(result, d); return result; }/*from w w w . j a va 2s .c o m*/ }