Skip to content

Commit 93252bf

Browse files
author
Samuel Facchinello
committed
fix clang
1 parent 61e2a98 commit 93252bf

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,17 @@
88
public final class LetterCombinationsOfPhoneNumber {
99

1010
// Mapping of numbers to corresponding letters on a phone keypad
11-
private static final Map<Integer, String> numberToCharMap = Map.of(
12-
0, "",
13-
1, "",
14-
2, "abc",
15-
3, "def",
16-
4, "ghi",
17-
5, "jkl",
18-
6, "mno",
19-
7, "pqrs",
20-
8, "tuv",
21-
9, "wxyz"
22-
);
11+
private static final Map<Integer, String> numberToCharMap = Map.of( //
12+
0, "", //
13+
1, "", //
14+
2, "abc", //
15+
3, "def", //
16+
4, "ghi", //
17+
5, "jkl", //
18+
6, "mno", //
19+
7, "pqrs", //
20+
8, "tuv", //
21+
9, "wxyz");
2322

2423
private LetterCombinationsOfPhoneNumber() {
2524
// Prevent instantiation

0 commit comments

Comments
 (0)