Here you can find the source of min(Integer a, Integer b)
Parameter | Description |
---|---|
a | the a |
b | the b |
public static int min(Integer a, Integer b)
//package com.java2s; public class Main { /**/*from w ww. j a v a 2 s . c o m*/ * Min. * * @param a the a * @param b the b * @return the int */ public static int min(Integer a, Integer b) { return Math.min(a, b); } /** * Min. * * @param a the a * @param b the b * @return the long */ public static long min(Long a, Long b) { return Math.min(a, b); } /** * Min. * * @param a the a * @param b the b * @return the float */ public static float min(Float a, Float b) { return Math.min(a, b); } /** * Min. * * @param a the a * @param b the b * @return the double */ public static double min(Double a, Double b) { return Math.min(a, b); } }