Package javadoc

Class JavadocExample2


  • public class JavadocExample2
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      JavadocExample2()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double factorial​(int x)
      Calculates factorial.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavadocExample2

        public JavadocExample2()
    • Method Detail

      • factorial

        public double factorial​(int x)
        Calculates factorial. For negative numbers returns 1. 3rd example.
        Parameters:
        x - a value
        Returns:
        the factorial of x.
        See Also:
        JavadocExample1