Here you can find the source of max(Integer a, Integer b)
Parameter | Description |
---|---|
a | the a |
b | the b |
public static int max(Integer a, Integer b)
//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); } }