We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 553f9db commit 482eb3aCopy full SHA for 482eb3a
src/com/codecafe/concurrency/thread/joiningthreads/FactorialTask.java
@@ -22,7 +22,7 @@ public BigInteger factorial(long n) {
22
BigInteger tempResult = BigInteger.ONE;
23
24
for (long i = n; i > 0; i--) {
25
- tempResult = tempResult.multiply(new BigInteger(Long.toBinaryString(i)));
+ tempResult = tempResult.multiply(new BigInteger(Long.toString(i)));
26
}
27
28
return tempResult;
0 commit comments