📜  过滤数组元素 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:22.804000             🧑  作者: Mango

代码示例2
int[] a = {1,2,3,4};
boolean contains = IntStream.of(a).anyMatch(x -> x == 4);