📜  java 如果数组匹配的一个刺痛 - Java 代码示例

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

代码示例1
String[] fieldsToInclude = { "id", "name", "location" };

if ( ArrayUtils.contains( fieldsToInclude, "id" ) ) {
    // Do some stuff.
}