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

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

Description

max between a and b

License

Open Source License

Parameter

Parameter Description
a int
b int

Return

int

Declaration

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

Method Source Code

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

public class Main {
    /**// w ww . j a v  a 2  s.c om
     * max between a and b
     * @param a int
     * @param b int
     * @return int
     */
    public static final int max(int a, int b) {
        return a > b ? a : b;
    }
}

Related

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