Package com.zybooks.dsaj.recursion
Class Factorial
java.lang.Object
com.zybooks.dsaj.recursion.Factorial
Demonstration of recursive factorial function.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Factorial
public Factorial()
-
-
Method Details
-
factorial
Computes the factorial of the given (nonnegative) integer)- Throws:
IllegalArgumentException
-
main
Simple test, assuming valid integer given as command-line argument
-