mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-22 20:49:52 +07:00
17 lines
310 B
Java
17 lines
310 B
Java
// "Replace with 'peek'" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
void test(List<String> list) {
|
|
long count = list.stream()
|
|
.ma<caret>p(e -> {
|
|
System.out.println(e);
|
|
// hello
|
|
return /* in return */ e;
|
|
})
|
|
.count();
|
|
System.out.println(count);
|
|
}
|
|
}
|