Skip to content

Commit 1b752d5

Browse files
committed
fix mistake in build error solution
1 parent 75e34d2 commit 1b752d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/thealgorithms/conversions/WordsToNumber.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private static BigDecimal handleHundred(BigDecimal currentChunk, String word, bo
124124
return currentChunk.multiply(BigDecimal.valueOf(100));
125125
}
126126

127-
private static void handlePowerOfTen(Collection<BigDecimal> chunks, BigDecimal currentChunk, BigDecimal powerOfTen, String word, boolean prevNumWasPowerOfTen) {
127+
private static void handlePowerOfTen(List<BigDecimal> chunks, BigDecimal currentChunk, BigDecimal powerOfTen, String word, boolean prevNumWasPowerOfTen) {
128128
boolean currentChunkIsZero = currentChunk.compareTo(BigDecimal.ZERO) == 0;
129129
if (currentChunkIsZero || prevNumWasPowerOfTen) {
130130
throw new WordsToNumberException(WordsToNumberException.ErrorType.UNEXPECTED_WORD, word);
@@ -150,7 +150,7 @@ private static BigDecimal handleNumber(Collection<BigDecimal> chunks, BigDecimal
150150
return currentChunk.add(bigDecimalNumber);
151151
}
152152

153-
private static void handlePoint(List<BigDecimal> chunks, BigDecimal currentChunk, ArrayDeque<String> wordDeque) {
153+
private static void handlePoint(Collection<BigDecimal> chunks, BigDecimal currentChunk, ArrayDeque<String> wordDeque) {
154154
boolean currentChunkIsZero = currentChunk.compareTo(BigDecimal.ZERO) == 0;
155155
if (!currentChunkIsZero) {
156156
chunks.add(currentChunk);

0 commit comments

Comments
 (0)