mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
11 lines
276 B
Java
11 lines
276 B
Java
// "Replace with anyMatch()" "true"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public List<? extends CharSequence> getList() {return Arrays.asList("a");}
|
|
public boolean test() {
|
|
return getList().stream().map(CharSequence::toString).anyMatch(s -> !s.isEmpty());
|
|
}
|
|
}
|