Why is that the if statement won't print out "false", however when I enter System.out.print("true"); in the else statement, it'll print out true? In what way are if statements designed in order to execute like that?
int x, y;
x = 5;
y = 6;
if( x == y && y == x ){
System.out.println("false");
}
else
{
}
Aucun commentaire:
Enregistrer un commentaire