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(1,2) will return "lesser" GLE(2,1) will return "greater" GLE(2,2) 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!