Returned output as false but still not marked right

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-java/lessons/conditionals-control-flow/exercises/boolean-operators-precedence?action=lesson_resume&link_content_target=interstitial_lesson

The output, as was asked, is returning false,but it isn’t ticked off right. Please help
Error says " Almost! Did you use each boolean operator no more than one time?"

```

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

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

}

}

<do not remove the three backticks above>
public class Precedence {
	public static void main(String[] args) {

		boolean riddle = /**/( 1 < 8 /**/ (5 > 2 /**/ 3 < 5));
		System.out.println(riddle);

	}
}

just use each Boolean operator in place of /**/ nothing else and make it false

1 Like

Yeah it worked … Thanks :slight_smile:

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