One's value is defined by one's values. The more one tries to understand and define the values, the stronger one becomes.
Monday, May 26, 2014
Friday, May 16, 2014
What's the limit?
It's not the sky!
It's the architecture...
Dedicated to the Javaness!
public BigInteger factorial(BigInteger n, BigInteger result) {
if(n.equals(BigInteger.ONE)) {
return result;
} else if(n.compareTo(BigInteger.ONE) > 0){
result = n.multiply(factorial(n.subtract(BigInteger.ONE), result));
} else {
System.out.println("Overflow!!!");
}
return result;
}
Subscribe to:
Posts (Atom)