Java Number Max Value max(int a, int b, int c)

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

Description

max

License

Open Source License

Declaration

public static final int max(int a, int b, int c) 

Method Source Code

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

public class Main {
    public static final int max(int a, int b, int c) {
        if (a < b)
            a = b;/*  w  w w  . ja  va  2 s .c  o m*/
        if (a < c)
            a = c;
        return a;
    }

    public static final float max(float a, float b, float c) {
        if (a < b)
            a = b;
        if (a < c)
            a = c;
        return a;
    }

    public static final double max(double a, double b, double c) {
        if (a < b)
            a = b;
        if (a < c)
            a = c;
        return a;
    }

    public static final float max(float a, float b, float c, float d) {
        if (a < b)
            a = b;
        if (a < c)
            a = c;
        if (a < d)
            a = d;
        return a;
    }
}

Related

  1. max(int a, int b)
  2. max(int a, int b)
  3. max(int a, int b)
  4. max(int a, int b)
  5. max(int a, int b, int c)
  6. max(int a, int b, int c)
  7. max(int a, int b, int c)
  8. max(int a, int b, int c)
  9. max(int a, int b, int c, int d)