mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
8 lines
215 B
Java
8 lines
215 B
Java
import java.util.Arrays;
|
|
|
|
// "Collapse loop with stream 'forEach()'" "true-preview"
|
|
public class Main {
|
|
public void test(int[] arr) {
|
|
Arrays.stream(arr).filter(i -> i > 0).forEach(System.out::println);
|
|
}
|
|
} |