Question: Write java ( define ) a public static method named GLE, that takes two arguments ( all arguments will be ints ) . When this
Write java define a public static method named GLE, that takes two arguments all arguments will be ints When this method is called, it should determine if the first argument value is greater than, less than, or equal to the second argument value. The method should then return the string "greater", "lesser", or "equal" depending on the argument values.
Examples:
GLE will return "lesser" GLE will return "greater" GLE will return "equal"
You may wish to write some additional code in the main method to test your method.
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
