Answers for "string array contains value java"

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
2

java array contains

Arrays.asList(yourArray).contains(yourValue)
Posted by: Guest on September-19-2020

Code answers related to "string array contains value java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language