static bool anyEndsWith(L l, S s) { for (S x : l) if (x.endsWith(s)) true; false; }