Page 1 of 1

Write a method with an int return type that has two int parameters. The method returns the larger parameter as an int. I

Posted: Thu May 05, 2022 1:03 pm
by answerhappygod
Write a method with an int return type that has two int
parameters. The method
returns the larger parameter as an int. If neither is larger, the
program returns -1.
a. Call this method three times, once with the first argument
larger, once with
the second argument larger, and once with both arguments equal