Did you use each Boolean operator no more than one time?

https://www.codecademy.com/courses/learn-java/lessons/conditionals-control-flow/exercises/boolean-operators-precedence?action=lesson_resume

Almost! Did you use each Boolean operator no more than one time?

boolean riddle = !((( 1 < 8 ) && (5 > 2)) || (3 < 5));
		System.out.println(riddle);

False

We start from here…

boolean riddle = /**/( 1 < 8 /**/ (5 > 2 /**/ 3 < 5));

and should only replace the comments with a Boolean operator, not move around or add any brackets.

2 Likes

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