📜  java 在数组中查找元素 - Java 代码示例

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

代码示例2
// Convert to stream and test it
    boolean result = Arrays.stream(alphabet).anyMatch("A"::equals);
    if (result) {
        System.out.println("Hello A");
    }
Copy