Ask Question
2 February, 12:38

1. Rewrite each condition below in valid Java syntax (give a boolean expression) : a. x > y > z b. x and y are both less than 0 c. neither x nor y is less than 0 d. x is equal to y but not equal to z

+5
Answers (1)
  1. 2 February, 12:52
    0
    Here are Boolean expressions in Java syntax.

    Step-by-step explanation:

    For each part:

    a) (x > y && y > z)

    b) x = = y && x < 0, or x < 0 && y < 0, or x = = y && y < 0 (which is essentially the first example)

    c) (x = = y && x > = 0), or (x > = 0 && y > = 0), or (x = = y && y > = 0) (for the first and third, once the first condition establishes that x is equal to y, if either x or y is greater than or equal to 0, then they are both not less than 0)

    d) (x = = y && x! = z), or (x = = y && y! = z)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “1. Rewrite each condition below in valid Java syntax (give a boolean expression) : a. x > y > z b. x and y are both less than 0 c. neither ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers