Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check if a list contains a string java

String search = "A";
for(String str: myList) {
    if(str.trim().contains(search))
       return true;
}
return false;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #list #string #java
ADD COMMENT
Topic
Name
4+9 =