Java Number Max Value max(double first, double second, double third, double fourth)

Here you can find the source of max(double first, double second, double third, double fourth)

Description

max

License

Open Source License

Declaration

public static double max(double first, double second, double third, double fourth) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double max(double first, double second, double third, double fourth) {
        if (first > second && first > third && first > fourth) {
            return first;
        }/*from  w w  w  .j a v  a  2 s  .  c  o m*/
        if (second > third && second > fourth) {
            return second;
        }
        if (third > fourth) {
            return third;
        }
        return fourth;
    }
}

Related

  1. max(double a, double b)
  2. max(double a, double b)
  3. max(double a, double b, double c, double d)
  4. max(double a, double b, double c, double d)
  5. max(double d1, double d2)
  6. max(double n1, double n2, double n3)
  7. max(double no1, double no2, double no3)
  8. max(double num1, double num2, double num3)
  9. max(double number1, double number2)