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