Boolean Operators: Presendence


#1

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

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

Im confuesd on how this Lesson works


#2

I also think that the exercise could be a little more clear.
But i got this solution.

boolean tricky;
if ( 3 >= 3 && !(true || true) ){
tricky = false;
}


#3

How did you solve it - im stuck there too :frowning: