Creating API Document | javadoc tool

Creating API Document | javadoc tool

We can create document api in java by the help of javadoc tool. In the java file, we must use the documentation comment /**… */ to post information for the class, method, constructor, fields etc.

Let’s see the simple class that contains documentation comment.

To create the document API, you need to use the javadoc tool followed by java file name. There is no need to compile the javafile.

On the command prompt, you need to write:

javadoc M.java

to generate the document api. Now, there will be created a lot of html files. Open the index.html file to get the information about the classes.


原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/263809.html

(0)
上一篇 2022年6月1日
下一篇 2022年6月1日

相关推荐

发表回复

登录后才能评论