Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java stream filter

List<String> result = lines.stream()               
                .filter(line -> "theLineIWant".equals(line))
                .collect(Collectors.toList());
 
PREVIOUS NEXT
Tagged: #java #stream #filter
ADD COMMENT
Topic
Name
8+9 =