是否有更好的方法来否定Java中的布尔值而不是简单的if-else?
if (theBoolean) { theBoolean = false; } else { theBoolean = true; }
java boolean
boolean ×1
java ×1