mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 02:21:17 +07:00
10 lines
243 B
Java
10 lines
243 B
Java
// "Collapse loop with stream 'allMatch()'" "true-preview"
|
|
|
|
import java.util.Arrays;
|
|
|
|
public class Main {
|
|
boolean find(String[][] data) {
|
|
return Arrays.stream(data).flatMap(Arrays::stream).allMatch(str -> str.startsWith("xyz"));
|
|
}
|
|
}
|