Answers for "Given three ints, a b c, return true if b is greater than a, and c is greater than b. However, with the exception that if "bOk" is true, b does not need to be greater than a."

0

Given three ints, a b c, return true if b is greater than a, and c is greater than b. However, with the exception that if "bOk" is true, b does not need to be greater than a.

public boolean inOrder(int a,int b,int c,boolean bOk){return bOk?c>b:b>a&&c>b;}
Posted by: Guest on May-09-2021

Code answers related to "Given three ints, a b c, return true if b is greater than a, and c is greater than b. However, with the exception that if "bOk" is true, b does not need to be greater than a."

Browse Popular Code Answers by Language