I always use the comment operator in Java whenever I need to take some note or explain the function.
/*
* Comment
*/
I also saw someone use the comment operator like this
/**
* Comment.
*/
Interestingly, if you use this comment operator, it will display @param if you have parameter and @return if you have a return.
He said to me that I need to put a period at the end of the sentence; then, if you use the function somewhere else, you can view the comment as a documentation, like Javadoc.
I did not know how to view the comment as a documentation. Can you show me how to display it in both Netbean and Eclipse. Thanks !