Java 8 - filter empty string from List not working
<p>I would like to remove an empty String from the List of Strings.</p>

<p>Here is what I tried, using the stream API:</p>

<pre><code>list.stream().filter(item-&gt; item.isEmpty()).collect(Collectors.toList());
</code></pre>

<p>After that empty string is still present in the list. What am I missing?</p>