8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08ff86a commit 08fd928Copy full SHA for 08fd928
Chapter_01/P02_FirstNonRepeatedCharacter/src/modern/challenge/Strings.java
@@ -106,7 +106,7 @@ public static char firstNonRepeatedCharacterV4(String str) {
106
}
107
108
Map<Integer, Long> chs = str.chars()
109
- .mapToObj(c -> c)
+ .mapToObj(cp -> cp)
110
.collect(Collectors.groupingBy(Function.identity(),
111
LinkedHashMap::new, Collectors.counting()));
112
@@ -125,7 +125,7 @@ public static String firstNonRepeatedCharacterVCP4(String str) {
125
126
127
Map<Integer, Long> chs = str.codePoints()
128
129
130
131
0 commit comments