/** and ends *//** * This is my comment. You can add <strong>html tags</strong>. */
* @param (classes, interfaces, methods and constructors only) * @return (methods only) * @exception (@throws is a synonym added in Javadoc 1.2) * @author (classes and interfaces only, required) * @version (classes and interfaces only, required. See footnote 1) * @see * @since * @serial (or @serialField or @serialData) * @deprecated (see How and When To Deprecate APIs)
/**
* Set circle's radius.
*
* @param r Circle's radius
* @throws RuntimeException If given radius < 0
*/
public void setRadius(double r) throws RuntimeException {
if(r >= 0) {
radius = r;
}
else
throw new RuntimeException("Radius cannot be negative!");
}
javadoc -d documentation *.javapublic void setRadius() throws java.lang.RuntimeException
java.lang.Exception - If given radius < 0