mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 15:50:49 +07:00
GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
10 lines
265 B
Java
10 lines
265 B
Java
// "Replace 'flatMap()' with 'flatMapToInt()'" "true-preview"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
class Test {
|
|
void test() {
|
|
int[][] data = {{0,1,2},{3,4,5}};
|
|
Arrays.stream(data).flatMapToInt(Arrays::stream).forEach(System.out::println);
|
|
}
|
|
} |