Larger of Two Numbers (Practice)
easyQuestion 279Create a class named NumberUtil with a public static method Max that takes two integers, a and b, and returns whichever one is larger. If both values are equal, returning either one is correct. For example, Max of 4 and 9 returns 9.
Expected output
9= newline. The output ends with a newline, so print one after the last line.
Hints4 available
Sign in to use hintsTopics
Methods
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cw, cr, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.