🌈 搜索
📅  最后修改于: 2022-03-11 14:52:03.113000             🧑  作者: Mango
boolean found = list.stream() .anyMatch(p -> p.name.equals(personName));