Java has three types of annotation formats:
1: Single line short note://
2: Block paragraph Comment:/* */
3: Document Comment:/** */
tags that use document annotations are mainly @author, @version, @param, @return, @throws.
For example:
/*** <p style= "FONT-SIZE:16PX;" > * Thinking in Java Chapter 2 exercises, mainly learned how to use Javadoc to generate development documents * </p> *@authorDZ *@version1.0.0*/PublicClassLEARN1 {PublicStaticvoid main (string[] args) { // TODO auto-generated method stub Systemprint ("1" ); } /** * output system environment related messages * * @ Param*/public Span style= "color: #0000ff;" >static void Systemprint (String a) { System.getproperties (). List (system.out);; System.out.println (System.getproperty ("User.Name"
Use eclipse-directly project->generate Javadoc export Comment Document
After export, under the Doc folder under the project path, the note documents are generated inside, and you can click Index.html to view the comments about the classes and methods.
(2015-12-08) Use Javadoc to generate comment document HTML for class