📅  最后修改于: 2022-03-11 14:52:12.513000             🧑  作者: Mango
List list = new ArrayList();
list.add("How are you");
list.add("How you doing");
list.add("Joe");
list.add("Mike");
Collection filtered = Collections2.filter(list,
Predicates.containsPattern("How"));
print(filtered);