package Doc; import java.util.*; /** <h3>Javadoc Tutorial</h3> * <br> * <ul> * <li>Occur only within doc comments</li> * <li>Javadoc will process comment documentation for only public and protected members</li> * </ul> * @see Buick * @see Doc.A.Honda * @see <a href = "https://docs.oracle.com/javase/7/docs/api/java/lang/String.html">String</a> * @see #setMaker(String) * @author <a href = "mailto:lchen@ecsu.edu">Lin Chen</a> * @author Yanhua Feng * @version 1.0 * @since 09.27.2017 */ public class Car { private String maker; /** Initialize Car with maker name * @param c maker name */ public Car(String c) { maker = c; } /** Get make name * @return maker name */ public String getMaker() { return maker; } /** Set maker * @param m maker name */ public void setMaker(String m) { maker = m; } /** Convert a Car object to string * @return string */ public String toString() { return "Car: "+maker; } }
package Doc; /** <h3>Javadoc Tutorial</h3> * <ul> * <li>Related to <a href = "{@docRoot}/index.html">Root</a></li> * </ul> * @author Lin Chen * @author https://lin-chen-va.github.io/ * @version 1.0 */ public class Buick { private String color; public Buick(String c) { color = c; } public String toString() { return "Car: "+maker; } }
package Doc.A; /** <h3>Javadoc Tutorial</h3> * @see Doc.Car * @see Doc.Buick */ public class Honda { private String color; public Honda(String c) { color = c; } public String toString() { return "Car: "+maker; } }