Need help with Boolean operator:Precedence


#1

Set the boolean variable puzzle equal to the Boolean result of the single line comment directly above it.

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

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

	// ( !true || (false && true) )
	boolean puzzle = true;
	System.out.println(puzzle);
	
}

}


#2

You are on the right track, you just have to put the right result there.

If you are having brain strain from trying to figure out the answer you can always put it in a println statement to make the computer do the work. :smile:


#3

Thank you! Yes, brain strain at its best ...


#4

where do u put that
:disappointed_relieved: