课程: Java 8+ Essential Training: Objects and APIs
今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Document code with Javadoc
- The Java development kit includes a tool named JavaDoc. Its job is to extract information from the code such as names of classes, methods, fields and so on. But it can also include specially formatted comments that you can put into your code. To generate simple Java documentation all you need to do in any project in IntelliJ IDEA, is to go to the menu and select tools, generate JavaDoc. You can either generate the documentation for your entire project, for a single file, or for a custom scope. I'll generate it for a whole project. Down here, set your output directory and make sure that you create a brand new directory for the documentation. If I were to leave this as it's displayed now, placing the documentation in the desktop directory, I'd get a whole bunch of subdirectories and files that are placed directly in that place and that's not what you want. So, I'm going to add a subdirectory of the desktop called docs. And then I'll click okay. And it takes just a moment to generate…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。