Question: Write ( define ) a public static method named isSorted, that takes three arguments ( all arguments will be ints ) . This method should
Write define a public static method named isSorted, that takes three arguments all arguments will be ints This method should determine if the three argument values are in ascending order. The method should return the boolean value true if the argument values are in ascending order, otherwise it should return false.
Examples:
isSorted will return true isSorted will return false isSorted will return true
You may wish to write some additional code 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
