I found this code in a book and I executed it in Netbeans:
boolean b = false;
if(b = true) {
System.out.println("true");
} else {
System.out.println("false");
}
I just don't understand why the output of this code is true,
Can anyone enlighten me please,
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…