Boolean operators (&& || !) won't work


I am stuck on this topic of Boolean operators (&& || !) plz tell me what I'm doing wrong

Boolean Operators: Precedence

It keeps saying : Almost! Did you use each Boolean operator no more than once?

Replace this line with your code. 

public class Precedence {
	public static void main(String[] args) {

		boolean riddle = ( !(3 > 5) || (1 == 1 && 1 != 1) );



Your supposed to type the true false words right? Or just to boolean oprerator?


u are supposed to use Boolean operators to get an output of false, and I tried true / false and numbers and both said the same thing


this problem is happening to me too


The SCT expects an expression, not just false. The leading parenthesis might be the problem. Check all the brackets.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.