How to Close a Comment in Java
In Java programming, you can use comments to let other people know what sections of code do. Comments help when multiple people need to work with and develop the script. The comments do not run as part of the program. However, if you do not properly close your comment, the code after the comment will not run.
Instructions
-
-
1
Open the script with a comment that needs to be closed in your SDK or IDE.
-
2
Locate the comment in your script.
-
-
3
Type "*/" at the end of the comment.
-
4
Save and close your script.
-
1
Tips & Warnings
End-of line comments open with "//" and do not need a closing mark. Only comments that open with "/*" or "/**" need to be closed.