Pin It

How to use Javadoc Comments in Java program for Documentation ?

Program to use Javadoc Comments in Java for Documentation

/**
 * @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:




Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Related Posts Plugin for WordPress, Blogger...

Post your related queries below ...

comments powered by Disqus
Powered by Blogger.
 
© 2012 Learn Java by Examples Template by Hubber Spot