Think in java 答案_Chapter 2_Exercise 9

阅前声明: http://blog.csdn.net/heimaoxiaozi/archive/2007/01/19/1487884.aspx

/****************** Exercise 9 ******************
* Find the code for the second version of
* HelloDate.java, which is the simple comment
* documentation example. Execute javadoc on the
* file and view the results with your Web
* browser.
***********************************************/

import java.util.*;

public class E09_HelloDate {
  public static void main(String[] args) {
    System.out.println("Hello, it's: " );
    System.out.println(new Date());
  }
}  

//+M java E09_HelloDate
//+M mkdir HelloDate
//+M javadoc E09_HelloDate.java –d HelloDate

**The command to run javadoc on the file and to place the results in a separate subdirectory called HelloDate is embedded as the third +M comment directive above. Note that javadoc doesn’t automatically create the destination directory.

你可能感兴趣的:(Java)