mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-23 07:14:21 +07:00
17 lines
304 B
Java
17 lines
304 B
Java
// "Replace with 'peek'" "false"
|
|
|
|
import java.util.stream.IntStream;
|
|
|
|
public class Main {
|
|
void test() {
|
|
int[] ints = IntStream.range(0, 100)
|
|
.filter(x -> x % 3 == 0)
|
|
.m<caret>ap(x -> {
|
|
x++;
|
|
return x;
|
|
})
|
|
.toArray();
|
|
System.out.println(ints.length);
|
|
}
|
|
}
|