mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
9 lines
220 B
Java
9 lines
220 B
Java
// "Replace with 'stream.anyMatch()'" "true-preview"
|
|
|
|
import java.util.Arrays;
|
|
|
|
class Test {
|
|
boolean anyMatch() {
|
|
return 0 < Arrays.asList("ds", "e", "fe").stream().filter(s -> s.length() > 1).c<caret>ount();
|
|
}
|
|
} |