Returns the smaller of two int values. That is, the result the argument closer to the value of Integer#MIN_VALUE. If the arguments have the same value, the result is that same value. @param a an argument. @param b another argument. @return the smaller of a and b.
(int a, int b)
| 13 | * @return the smaller of {@code a} and {@code b}. |
| 14 | */ |
| 15 | public static int min(int a, int b) { |
| 16 | return a <= b ? a : b; |
| 17 | } |
| 18 | } |
no outgoing calls