filter collection based on a criteria java stream code example
Example: java stream and filter
items.stream()
.filter(s->s.contains("B"))
.forEach(System.out::println);
items.stream()
.filter(s->s.contains("B"))
.forEach(System.out::println);