Question: Write a method called max that receives 2 integer numbers as input and returns the maximum number. Define the method before or after the main
Write a method called "max" that receives integer numbers as input and returns the maximum number.
Define the method before or after the main method in a class called MyMethod. Then call your method from the main method giving it integer numbers as input arguments parameter variables and print out the result.
Your program should include Java doc style comments.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
