Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

filter arraylist java

List<String> list = new ArrayList<String>();
list.add("How are you");
list.add("How you doing");
list.add("Joe");
list.add("Mike");
    
Collection<String> filtered = Collections2.filter(list,
    Predicates.containsPattern("How"));
print(filtered);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #arraylist #java
ADD COMMENT
Topic
Name
2+5 =