Skip to content

Commit 482eb3a

Browse files
committed
Bug fix
1 parent 553f9db commit 482eb3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/codecafe/concurrency/thread/joiningthreads/FactorialTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public BigInteger factorial(long n) {
2222
BigInteger tempResult = BigInteger.ONE;
2323

2424
for (long i = n; i > 0; i--) {
25-
tempResult = tempResult.multiply(new BigInteger(Long.toBinaryString(i)));
25+
tempResult = tempResult.multiply(new BigInteger(Long.toString(i)));
2626
}
2727

2828
return tempResult;

0 commit comments

Comments
 (0)