Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java if one sting on array match

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

if ( ArrayUtils.contains( fieldsToInclude, "id" ) ) {
    // Do some stuff.
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #sting #array #match
ADD COMMENT
Topic
Name
5+7 =