mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-23 07:14:21 +07:00
15 lines
266 B
Java
15 lines
266 B
Java
// "Replace with 'peek'" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
void test(List<String> list) {
|
|
// hello
|
|
/* in return */
|
|
long count = list.stream()
|
|
.peek(System.out::println)
|
|
.count();
|
|
System.out.println(count);
|
|
}
|
|
}
|