/**
 * A simple utility class for integer division that
 * illustrates how exceptions can be re-thrown
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class Divider
{
    /**
     * Performs integer division
     *
     * @param num   The numerator
     * @param denom The denominator
     * @return      The result of the integer division
     * @throws      An ArithmeticException in case of a divide by zero
     */
    public int divide(int num, int denom) throws ArithmeticException
    {
	int     result;

	result = num / denom;
	return result;
    }
}
