Skip to content

Commit 955c827

Browse files
authored
Merge pull request Snailclimb#2295 from Gemaxis/main
Fix code error
2 parents 1b6635a + 313a696 commit 955c827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/new-features/java8-common-new-features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ public class MapAndFlatMapExample {
627627
.collect(Collectors.toList());
628628

629629
System.out.println("Using map:");
630-
System.out.println(mapResult);
630+
mapResult.forEach(arrays-> System.out.println(Arrays.toString(arrays)));
631631

632632
List<String> flatMapResult = listOfArrays.stream()
633633
.flatMap(array -> Arrays.stream(array).map(String::toUpperCase))

0 commit comments

Comments
 (0)