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