title: How save a native variable with streams
body: <p>Hi im trying to understand java 8 api streams, i dont know if this can be done, but im trying to do a filter to a list a save in a new variable like this and  the compiler say to me that he cant convert from Stream to String and it has sense but how can i  do the operation?</p>
  <pre><code>    List&lt;String&gt; lista = new ArrayList&lt;String&gt;();
      lista.add(&quot;1&quot;);
      lista.add(&quot;2&quot;);
      
      String num = lista.stream().filter(x -&gt; x.equals(&quot;1&quot;));
  </code></pre>
  <p>And if i want to convert that string to int i try to do this but also the compiler say to me, wrong types</p>
  <pre><code>        List&lt;String&gt; lista = new ArrayList&lt;String&gt;();
      lista.add(&quot;1&quot;);
      lista.add(&quot;2&quot;);
      
      int num = lista.stream().filter(x -&gt; x.equals(&quot;1&quot;)).map(x -&gt; Integer.parseInt(x));
  </code></pre>