5/11


#1



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


No error message, but it will not let me pass the level because it says "Almost! Did you use each Boolean operator no more than one time?" I'm very confused because I got the code to output false and I used each Boolean operator only once. Please help.


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

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

	}
}


#2

I suspect it could be an issue with the leading parentheses. The lesson check will not expect them.

!( ...

#5