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