java.lang.ObjectJavadocExample
public class JavadocExample
This program demonstrates basic Javadoc comments.
| Field Summary | |
|---|---|
int |
lastResult
The result of the most recent division. |
| Constructor Summary | |
|---|---|
JavadocExample()
|
|
| Method Summary | |
|---|---|
int |
divide(int top,
int bottom)
Divides the first parameter by the second. |
static void |
main(java.lang.String[] args)
This is the required main method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int lastResult
| Constructor Detail |
|---|
public JavadocExample()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - Not used.
public int divide(int top,
int bottom)
top - The dividend.bottom - The divisor.
java.lang.ArithmeticException - if divisor is zero.