Say I have the following three constants:
final static int MY_INT1 = 25; final static int MY_INT2 = -10; final static double MY_DOUBLE1 = 15.5;
Math.max only takes two arguments. If you want the maximum of three, use Math.max(MY_INT1, Math.max(MY_INT2, MY_DOUBLE2)).
Math.max
Math.max(MY_INT1, Math.max(MY_INT2, MY_DOUBLE2))