Subato

BigInteger Factorial

import java.math.BigInteger;
public final class  BigIntegerFactorial{

  private BigIntegerFactorial() {
  }

  static BigInteger factorial(long n){
    BigInteger result = BigInteger.ONE;
    for (long i = 1;i<=n;i++){
      result = result.multiply(new BigInteger(i+""));
    }
    return result;
  }
}