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


#1

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


#2

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.


#3

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