mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Fix code error
This commit is contained in:
parent
1b6635a066
commit
313a696e2d
@ -627,7 +627,7 @@ public class MapAndFlatMapExample {
|
||||
.collect(Collectors.toList());
|
||||
|
||||
System.out.println("Using map:");
|
||||
System.out.println(mapResult);
|
||||
mapResult.forEach(arrays-> System.out.println(Arrays.toString(arrays)));
|
||||
|
||||
List<String> flatMapResult = listOfArrays.stream()
|
||||
.flatMap(array -> Arrays.stream(array).map(String::toUpperCase))
|
||||
|
Loading…
x
Reference in New Issue
Block a user