Answers for "java 15 check if text is in array"

1

java if one sting on array match

String[] fieldsToInclude = { "id", "name", "location" };

if ( ArrayUtils.contains( fieldsToInclude, "id" ) ) {
    // Do some stuff.
}
Posted by: Guest on February-13-2021

Code answers related to "java 15 check if text is in array"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language