private static BigInteger getFactorial ( int number ) { BigInteger factorial = BigInteger . ONE ; for ( int i = number ; i > 1 ; i -- ) { factorial = factorial . multiply ( new BigInteger ( Integer . toString ( i ) ) ) ; } return factorial ; }
Computes the factorial of the given number