// "Replace with anyMatch()" "true" import java.util.*; public class Main { public List getList() {return Arrays.asList("a");} public boolean test() { for(CharSequence cs : getList()) { String s = cs.toString(); if(!s.isEmpty()) { return true; } } return false; } }