/**
 * This program demonstrates basic Javadoc comments.
 * 
 * @author Dave Matuszek
 * @version Oct 27, 2005
 */
public class JavadocExample {
    /** The result of the most recent division. */
    public int lastResult;
    
    /**
     * This is the required main method. It just gets
     * things started.
     * 
     * @param args Not used.
     */
    public static void main(String[] args) {
        JavadocExample example = new JavadocExample();
        System.out.println("Result is " + example.divide(20, 6));
    }
    
    /**
     * Divides the first parameter by the second.
     * 
     * @param top The dividend.
     * @param bottom The divisor.
     * @return The quotient.
     * @throws ArithmeticException if divisor is zero.
     */
    public int divide(int top, int bottom) {
        int lastResult = top / bottom;
        return lastResult;
    }
}
