Let see this example in Java,
public void methodY(){
/* some explain ...... */
int x=1;
}
Ok, now I want to comment the whole methodY so I put methodY inside /*
*/
like this:
/*
public void methodY(){
/* inside comment ...... */
int x=1;
}
*/
However, the inside comment /* inside comment ...... */ prevent that to be happen.
In Java, do we have a way to comment the whole block of code that already containing /* comments?
Comment this using inline comment //
.
Typically IDEs support Ctrl-/ on selected block.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With