(2015-12-08) Use Javadoc to generate comment document HTML for class

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.