mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
10 lines
267 B
Java
10 lines
267 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).flatMap(Arrays<caret>::stream).forEach(System.out::println);
|
|
}
|
|
} |