您的位置:首页 > 编程语言 > Java开发

Think in java 答案_Chapter 2_Exercise 9

2007-01-19 17:47 489 查看
阅前声明:

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: