Class JavadocExample

java.lang.Object
  extended by JavadocExample

public class JavadocExample
extends java.lang.Object

This program demonstrates basic Javadoc comments.

Version:
Oct 27, 2005
Author:
Dave Matuszek

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

lastResult

public int lastResult
The result of the most recent division.

Constructor Detail

JavadocExample

public JavadocExample()
Method Detail

main

public static void main(java.lang.String[] args)
This is the required main method. It just gets things started.

Parameters:
args - Not used.

divide

public int divide(int top,
                  int bottom)
Divides the first parameter by the second.

Parameters:
top - The dividend.
bottom - The divisor.
Returns:
The quotient.
Throws:
java.lang.ArithmeticException - if divisor is zero.