🌈 搜索
📅  最后修改于: 2022-03-11 14:58:40.376000             🧑  作者: Mango
public static boolean contains(final int[] arr, final int key) { return Arrays.stream(arr).anyMatch(i -> i == key); }