I think that most of us use "comment tricks" like this. When I need to disable the code for a moment (or test how good is the new version without deleting previous) I use comment/uncomment feature in NetBeans.

The only "trick" I use is to try and avoid block comments (/* ... */) in favour of single-line comments (//).... Because then I can use the block comment to remove large chunks of code without a closing comment in between messing things up

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org