mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
10 lines
288 B
Java
10 lines
288 B
Java
// "Replace 'flatMap()' with 'flatMapToDouble()'" "true-preview"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
class Test {
|
|
void test() {
|
|
double[][] data = {{0,1,2},{3,4,5}};
|
|
Arrays.stream(data).flatMap(array -> Arrays.<caret>stream(array)).forEach(System.out::println);
|
|
}
|
|
} |