mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
16 lines
348 B
Java
16 lines
348 B
Java
import java.util.Collection;
|
|
import java.util.List;
|
|
import java.util.stream.Stream;
|
|
|
|
class IDEA126969 {
|
|
void foo(final Stream<List<Integer>> stream) {
|
|
|
|
stream.flatMap(List::stream)
|
|
.forEach(i -> System.out.println(i.floatValue()));
|
|
|
|
stream.flatMap(Collection::stream)
|
|
.forEach(i -> System.out.println(i.floatValue()));
|
|
|
|
}
|
|
}
|