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