Skip to content

Commit 5b39d4b

Browse files
authored
style: avoid concatenation while populating KEYPAD
1 parent 24697f9 commit 5b39d4b

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
@@ -9,7 +9,7 @@ public final class LetterCombinationsOfPhoneNumber {
99
private static final char EMPTY = '\0';
1010

1111
// Mapping of numbers to corresponding letters on a phone keypad
12-
private static final String[] KEYPAD = new String[] {" ", EMPTY + "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"};
12+
private static final String[] KEYPAD = new String[] {" ", String.valueOf(EMPTY), "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"};
1313

1414
private LetterCombinationsOfPhoneNumber() {
1515
}

0 commit comments

Comments
 (0)