if (false) {x = 3; }
. , x = 3; , x = 3; "" , .
, " ", :
static final boolean DEBUG = false;
, :
if (DEBUG) {x = 3; } The idea is that it should be possible to change the DEBUG value from false to true or from true to false, and then compile the code correctly without any changes to the program text.
source
share