I’m wondering if there if a Java equivalent for C’s
#if 0
... Some Code ...
#endif
Which can be used around code blocks we don’t want to compile. Adding block quotes:
/*
... Some Code ...
*/
also has the same effect, but the problem is, we have to ensure there are no single line comments
// some comment
in the block.
There are no pre-processor directives in Java. Your best choice is commenting out code.