I'm asked for a statement that prints out false. The one below does, however I'm a little confused as to why.
I read it like this. Brackets first: (5 >2 && 3< 5) true and true = true. Second !(1<8 = false. So with the final boolean, false OR true = true. But the statement prints false.
Any help would be great
boolean riddle = !( 1 < 8 || (5 > 2 && 3 < 5));