Booleans and Operators Problem with interface?


#1

Some kind of bug... You could report it.

When I typed the code below, it should have been false because obviously, 34 is not greater than 33.
But it returned true.
public class And {
public static void main(String[] args) {

	System.out.println(34>33 && 56>45);
	
}

}

Does anyone know why???

Thanks!!!


#2

Wait... let's backtrack. 34 is not greater than 33?


#3

Same problem, I just can't seem to get past it.


#4

Examples?:neutral_face:


#5

Well the program that told me to make the system print either true and false with the &&& symbols. I tried multiple times with different numbers and the computer printed true and false at different times. I eventually gave up.


#7

You need to at most use 2 of these &&. One is for binary numbers (not covered in this track) and && are for booleans. Could you post your code so that we can try to find the bug?