Java Number Min Value findMin(int a, int b, int c, int d)

Here you can find the source of findMin(int a, int b, int c, int d)

Description

find Min

License

Open Source License

Declaration

private static int findMin(int a, int b, int c, int d) 

Method Source Code

//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*/
}

Related

  1. findMin(double newNumber, double currentMin)
  2. findMinAngularDistance(double angle1, double angle2)
  3. min( final double p_first, final double p_second, final double p_third )
  4. min(Comparable c1, Comparable c2)
  5. min(Comparable c1, Comparable c2)