Java
Java
Figure 1: cd command Suppose you want to use javadoc for creating the API of your class which is called BankAccount1.java. You can use the command javadoc -d doc BankAccount1.java This command will create a new folder called doc and put the API les in this new folder. See Figure 2 for an example.
Figure 2: Javadoc command If you have new tags, you should inform javadoc about them. Then you can use the command below, see gure 3. javadoc -tag newTag.:a:New Tag: -d doc BankAccount1.java
For example, if your new tag is pre, the command above will be: javadoc -tag pre.:a:Precondition: -d doc BankAccount1.java