void (String[] args) { final long count = Stream.of("abc", "acd", "ef").map(String::length).filter(x -> x % 2 == 0).peek(new Consumer<Integer>() { @Override public void accept(Integer x) { System.out.println(x); } }).count()<caret>; }