Java Number Min Value minimum(int a, int b, int c)

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

Description

Mininum of three integers

License

Open Source License

Parameter

Parameter Description
a a parameter
b a parameter
c a parameter

Declaration

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

Method Source Code

//package com.java2s;
/*/*www  .jav  a  2s  . co m*/
 * Copyright 2009 Pedro Oliveira
 * This file is part of Incerto.
 * 
 * Incerto is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Incerto is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with Incerto.  If not, see <http://www.gnu.org/licenses/>.
 */

public class Main {
    /**
     * Mininum of three integers
     * @param a
     * @param b
     * @param c
     * @return
     */
    private static int minimum(int a, int b, int c) {
        return Math.min(Math.min(a, b), c);
    }
}

Related

  1. minimiseSpaces(String input)
  2. minimize(final StringBuilder src)
  3. minimizeWhitespace(String str)
  4. minimum(float first, float second)
  5. Minimum(float x, float y)
  6. minimum(int a, int b, int c)
  7. minimum(int a, int b, int c)
  8. Minimum(int a, int b, int c)
  9. minimum(int a, int b, int c)