12345678910111213141516171819 |
-
-
-
- import java.math.BigInteger;
-
- public class Factorial {
-
- public BigInteger factorialOf(Integer value){
- BigInteger big = BigInteger.valueOf(1);
-
- for (int i = 1; i <= value; i++) {
- big = big.multiply(BigInteger.valueOf(i));
- }
-
- return big;
- }
-
- }
|