mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
- set language level explicitly (cherry picked from commit 01b844c4f0d812c4505491121429af3cc7df24c5) IJ-CR-159083 GitOrigin-RevId: d6cca2ad6ad3a3717d27bba341419cb0c236833a
13 lines
440 B
Java
13 lines
440 B
Java
|
|
public static void main(String[] args) throws IOException {
|
|
List<String> strings = readNonEmptyLines();
|
|
strings.forEach(System.out::println);
|
|
}
|
|
|
|
private static List<String> readNonEmptyLines() throws IOException {
|
|
try (BufferedReader reader = new BufferedReader(new FileReader("somePath"))) {
|
|
<caret>
|
|
return reader.lines().filter(l -> !l.isBlank()).filter(l -> !l.startsWith("a")).filter(l -> l.length() > 3).toList();
|
|
}
|
|
}
|