you should use the Java format for Boolean expressions You need only to write the expression (example: A <= (B + 3) ), and not the complete if statement (you do not need to submit a Java program for this question). The Java Boolean expressions that you write for this question should use only the comparison operators (<, >, ==, etc.), logical operators (&&, ||, !), and math operators +, –, *, /, or % (modulo). Use parentheses where necessary. Write a Boolean expression (Java) that is TRUE if the sum of three integers (A, B, C) is even and if the three numbers are all different from each other
Java booleans? They were ripped from C and C++ :-P
((((A+B+C) % 2) == 0) && (A != B) && (B != C) && (A != C))
I may be off on the parenthesis. hard to get them exact when not working in a proper text editor :)
thanks a lot man, this is due in 15 minutes lol
Glad I could help :)
Join our real-time social learning platform and learn together with your friends!