mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
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);
|
|
}
|
|
} |