Eclipse usage and Tip 4: generate instructions 1

Source: Internet
Author: User

WriteCodeAnnotations are often added. Java code annotations can be divided into two types. A single line comment starts. Add "/*" at the beginning of the first line, and add "*/" at the end of the last line. This section describes a method for adding annotations. The data domains and methods for annotation can be displayed at the call in the eclipse environment. :

Step 1: Enter "/**" on the method to add instructions "/**"

Step 2: Press ENTER

Step 3: view results

Note: This method is specifically designed for Javadoc and can be supported and processed by the built-in javadoc tool of JDK. Javadoc is a technology provided by Sun.ProgramSource codeTo form an API help document that matches the source code. That is to say, as long as a specific tag is used as a comment during programming, after the program is compiled, the development documentation of the program can be formed at the same time through javadoc.
The following describes how to use javadoc to form a program development document.

 

PreviousArticle, Eclipse usage and Tip 3: automatically generate main Method 2:

Http://blog.csdn.net/ts1122/article/details/8769426

Next article, eclipse usage and tips 5: generate instructions 2:
Http://blog.csdn.net/ts1122/article/details/8798127

 

Related Article

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.