8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a7d00c commit 829b8f1Copy full SHA for 829b8f1
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 868B = str.chars()
109
- .boxed()
+ .mapToObj(c -> c)
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