>, I did not quite understand what that meant, could anyone explain?
>, I did not quite understand what that meant, could anyone explain?
To enter comments in the source code, in Java, you can use one of two ways:
// Comentário em uma única linha
/* Comentário
que se divide em várias
linhas
*/
When writing comments of the form (note the two asterisks on the first line)
/**
*
*/
Comments can be interpreted by a tool - called Javadoc - which generates documentation based on the source code using, in addition to the comments between /** */
, other special annotations, such as @author
and @date
, which provide, respectively, authoring information and the creation date of the file. / p>
The wikipedia article gives you a good idea about Javadoc.
The Java API is an example of documentation generated using the tool.
Complementing some tags: