Java has no pre-processor along the lines of C.
Since, according to the tags, you're using Eclipse, you can simply mark the entire block of code you want to comment out then use CTRL - /.
You can also use that same key sequence to uncomment an already-commented-out block.