Java Array Max Value findMax(int a, int b, int c, int d)

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

Description

find Max

License

Open Source License

Declaration

private static int findMax(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 findMax(int a, int b, int c, int d) {
        int result = Math.max(a, b);
        result = Math.max(result, c);
        result = Math.max(result, d);
        return result;
    }//from   w w w .  java2  s .com
}

Related

  1. findMax(double newNumber, double currentMax)
  2. findMax(double[] arr)
  3. findMax(double[] u, int startU, int length)
  4. findMax(double[] u, int startU, int length)
  5. findMax(double[] values)
  6. findMax(int[] array)
  7. findMax(int[] v)
  8. findMax(int[] workArray, int idx)
  9. findMax(T[] arr)