Says i'm wrong but I foolwed all it's rules! Am I wrong, what did I do wrong?


#1



https://www.codecademy.com/en/courses/learn-java/lessons/conditionals-control-flow/exercises/boolean-operators-precedence


I get a "Almost! Did you use each Boolean operator no more than one time?" error.


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

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

	}
}.


#2

And what happens when your replace your

with

!( 1 < 8 && (5 > 2 || 3 < 5));

#3

wrong but I foolwed all it's rules! Am I wrong, what did I do wrong?








    leonhard.wettengmx.n
      Super User


    July 13

And what happens when your replace your

digitalblaster03518:( 1 < 8 && !(5 > 2 || 3 < 5));

with

!( 1 < 8 && (5 > 2 || 3 < 5));

Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.


#4

i got the same result and the same error comment


#5

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