001package edu.pdx.cs410J.lang;
002
003/**
004 * <P>This class demonstrates Javadoc comments</P>
005 *
006 * @author David Whitlock
007 * @version 1.0
008 */
009public class Javadoc {
010
011  /**
012   * Returns the inverse of a <code>double</code>
013   * @param d
014   *        The <code>double</code> to invert
015   * @return The inverse of a <code>double</code>
016   * @throws IllegalArgumentException
017   *         The <code>double</code> is zero
018   */
019  public double invert(double d) 
020    throws IllegalArgumentException {
021    if (d == 0.0) {
022      String s = d + " can't be zero!";
023      throw new IllegalArgumentException(s);
024    } else {
025      return 1.0 / d;
026    }
027  }
028}