The assignment operator in Java returns the assigned value (like it does, e.g., in c). So here, readLine()
will be executed, and it's return value stored in line
. That value is then checked against null
, and if it is null
, the loop will terminate.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…