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

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

Description

Max.

License

Open Source License

Parameter

Parameter Description
a the a
b the b

Return

the int

Declaration

public static int max(Integer a, Integer b) 

Method Source Code

//package com.java2s;

public class Main {
    /**//  w  w w  .ja  v  a 2 s. c om
     * Max.
     *
     * @param a the a
     * @param b the b
     * @return the int
     */
    public static int max(Integer a, Integer b) {
        return Math.max(a, b);
    }

    /**
     * Max.
     *
     * @param a the a
     * @param b the b
     * @return the long
     */
    public static long max(Long a, Long b) {
        return Math.max(a, b);
    }

    /**
     * Max.
     *
     * @param a the a
     * @param b the b
     * @return the float
     */
    public static float max(Float a, Float b) {
        return Math.max(a, b);
    }

    /**
     * Max.
     *
     * @param a the a
     * @param b the b
     * @return the double
     */
    public static double max(Double a, Double b) {
        return Math.max(a, b);
    }
}

Related

  1. max(int i, int j)
  2. max(int i, int j, int k)
  3. max(int idx, int orderFrom, int orderTo)
  4. max(int x, int x2, int x3)
  5. max(int x, int y)
  6. max(Integer i1, Integer i2)
  7. max(Iterable nums)
  8. max(long a, long b)
  9. max(Number a, Number b)