Think in java 答案_Chapter 2_Exercise 10

来源:互联网 发布:apache common base64 编辑:程序博客网 时间:2024/04/28 02:15

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

/****************** Exercise 10 *****************
* Turn docTest into a file that compiles and
* then run it through javadoc. Verify the
* resulting documentation with your Web browser.
***********************************************/

/** A class comment */
public class E10_docTest {
  /** A variable comment */
  public int i;
  /** A method comment */
  public void f() {}
}

//+M mkdir docTest
//+M javadoc E10_docTest.java –d docTest

**You must still execute javadoc and verify the results, but you can see the commands that are added to the makefile to do this, as +M comment directives. Note that we’re only concerned that the file compiles, so there’s no makefile directive to run it