Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cc069a8

Browse files
samuelfacvil02
andauthoredJun 12, 2024··
Update src/main/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumber.java
Co-authored-by: Piotr Idzik <[email protected]>
1 parent e1a428c commit cc069a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/main/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumber.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private static List<String> generateCombinations(int[] numbers, int index, Strin
4242
}
4343

4444
List<String> combinations = new ArrayList<>();
45-
String letters = MAP_OF_CHARS.get(numbers[index]); // Get corresponding letters for the current number
45+
final String letters = MAP_OF_CHARS.get(numbers[index]); // Get corresponding letters for the current number
4646

4747
// Iterate over each letter and recurse to generate further combinations
4848
for (char letter : letters.toCharArray()) {

0 commit comments

Comments
 (0)
Please sign in to comment.