Quick win: pick the larger number
if runs a block only when its test is true.
Your task
Fill in the body of larger so it returns a when a > b and b otherwise.
Integer larger(Integer a, Integer b) {
return null;
}Requirements
larger(3, 9)should be9larger(9, 3)should be9larger(4, 4)should be4larger(-1, -5)should be-1- The method should be written with
if, notMath.max(