Boolean operator!


#1

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

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

}

}


#2

Not a question. What are you asking?


#3

hello there, i need help with this question boolean operators lesson 3

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

	System.out.println(false || false);
	System.out.println(false || true);
System.out.println(true || false);
System.out.println(true || true);
}

}
error is "Use the || operator and valid Boolean expressions on each side of ||."


#4

We are given this code to complete:

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

		System.out.println(1<0 || 0<1);
		
	}
}

All that is expected is two expressions and the OR operator.


#5

thank you...it worked