Program to use Javadoc Comments in Java for Documentation
Usage command :
javadoc TodaysDate.java
HTML Generated as:
/** * @see java.util.Date * */ import java.util.Date; /** A simple program demonstrating * Java Documentation by placing following * annotations : * @author Jonty * @author www.hubberspot.com * @version 3.0 * */ public class TodaysDate { /**Entry to main method that prints * todays date. * @param args * @exception throws no exceptions */ public static void main(String[] args) { System.out.println("Hello, it’s: "); System.out.println(new Date()); } }
Usage command :
javadoc TodaysDate.java
HTML Generated as: