Skip to content

Commit 313a696

Browse files
committed
Fix code error
1 parent 1b6635a commit 313a696

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)