Java 8 Stream - Why is filter method not executing?
<p>I am learning filtering using java stream.
But the stream after filtering is not printing anything.
I think the filter method is not getting executed.
My filtering code is as follows:</p>

<pre><code>Stream.of("d2", "a2", "b1", "b3", "c")
    .filter(s -&gt; {
        s.startsWith("b");
        System.out.println("filter: " + s);
        return true;
    });
</code></pre>

<p>There is no compilation error and no exception also.
Any suggestion?</p>