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

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

<Below this line, add a link to the EXACT exercise that you are stuck at.>

Boolean Operators: Precedence
<In what way does your code behave incorrectly? Include ALL error messages.>

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) );
		System.out.println(riddle);

	}
}
1 Like

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.