当Java if语句同时具有赋值和相等检查OR
-d时,它是如何工作的?
public static void test() {
boolean test1 = true;
if (test1 = false || test1 == false) {
System.out.println("TRUE");
} else {
System.out.println("FALSE");
}
}
为什么打印结果是错误的?
https://stackoverflow.com/questions/29670421
复制相似问题