L
Lawrence D'Oliveiro
OK, so this isn’t specifically a Java thing, but ...
The opposite of “==†shouldn’t be “!=â€, it should be “!==â€. The meaning of
“!=†should really follow the pattern of “op=†(e.g. “+=â€, “*=â€), though in
this case the op is unary. Therefore
!= x;
should really be shorthand for
x = !x;
The opposite of “==†shouldn’t be “!=â€, it should be “!==â€. The meaning of
“!=†should really follow the pattern of “op=†(e.g. “+=â€, “*=â€), though in
this case the op is unary. Therefore
!= x;
should really be shorthand for
x = !x;