title: Move to next item using Java 8 foreach loop in stream
body: <p>I have a problem with the stream of Java 8 foreach attempting to move on next item in loop. I cannot set the command like <code>continue;</code>, only <code>return;</code> works but you will exit from the loop in this case. I need to move on next item in loop. How can I do that?</p>
  
  <p>Example(not working):</p>
  
  <pre><code>try(Stream&lt;String&gt; lines = Files.lines(path, StandardCharsets.ISO_8859_1)){
              filteredLines = lines.filter(...).foreach(line -&gt; {
             ...
             if(...)
                continue; // this command doesn't working here
      });
  }
  </code></pre>
  
  <p>Example(working):</p>
  
  <pre><code>try(Stream&lt;String&gt; lines = Files.lines(path, StandardCharsets.ISO_8859_1)){
      filteredLines = lines.filter(...).collect(Collectors.toList());
  }
  
  for(String filteredLine : filteredLines){
     ...
     if(...)
        continue; // it's working!
  }
  </code></pre>