Why does this if statement, with an assignment and equality check, evaluate to false?
public static void test() {
boolean test1 = true;
if (test1 = false || test1 == false) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
Why is this printing No
?