mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
9 lines
239 B
Java
9 lines
239 B
Java
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
private void foo(final Stream<String> stream) {
|
|
stream.collect(Collectors.collectingAndThen(Collectors.toList(), list -> list)).get(0).length();
|
|
}
|
|
}
|