Skip to content

Latest commit

 

History

42 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

(Note: documentation generated by ChatGPT)

Factorial

A Java class that provides two methods to compute the factorial of an integer number.

Methods

compute This method takes an integer value as input and returns its factorial as an integer. If the input value is negative, it throws a NegativeValueException with a message indicating that the input value is negative.

computeBigValue This method uses the BigInteger class and takes an integer value as input. It returns the factorial of the input value as a BigInteger. If the input value is negative, it throws a NegativeValueException with a message indicating that the input value is negative.

Example Usage

imagen

This will output:

imagen

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages