Factorial.java 276B

12345678910111213141516171819
  1. import java.math.BigInteger;
  2. public class Factorial {
  3. public BigInteger factorialOf(Integer value){
  4. long big = 1;
  5. for (long i = 1; i <= value; i++)
  6. big *= i;
  7. return BigInteger.valueOf(big);
  8. }
  9. }