🌈 搜索
📅  最后修改于: 2022-03-11 14:59:22.804000             🧑  作者: Mango
int[] a = {1,2,3,4}; boolean contains = IntStream.of(a).anyMatch(x -> x == 4);