mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 01:35:16 +08:00
style: include BigIntegerInstantiation
(#5294)
This commit is contained in:
@ -22,7 +22,7 @@ public final class FibonacciJavaStreams {
|
||||
return Optional.of(BigDecimal.ZERO);
|
||||
}
|
||||
|
||||
if (index.compareTo(new BigDecimal(2)) < 0) {
|
||||
if (index.compareTo(BigDecimal.TWO) < 0) {
|
||||
return Optional.of(BigDecimal.ONE);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user