title: Is Java 8 filters on Stream of large list more time consuming than for loop?
body: <p>I was replacing one of my legacy code from simple for loop over a list to Java 8 stream and filters.</p>
  <p>I have the for loop like below:</p>
  <pre><code>List&lt;Integer&gt; numbers = Arrays.asList(1,2,3,4,5,6,7,8,9,10);
  for(int i: numbers) {
      if((i &gt; 4) &amp;&amp; (i % 2 == 0)) {
           System.out.println(&quot;First even number in list more than 4 : &quot; +  numbers.get(i))
           break;
      }
  }
  </code></pre>
  <p>Here I have 6 iterations of the loop. When 6 is obtained, I print it.</p>
  <p>Now, I am replacing it with below:</p>
  <pre><code>numbers.stream()
         .filter(e -&gt; e &gt; 4)
         .filter(e -&gt; e % 2 == 0)
         .findFirst()
  </code></pre>
  <p>I am confused, if we are applying filter twice on the list, then is the time complexity more than the for loop case or is there something I am missing?</p>