title: Nested forEach in Java 8
body: <p>I want to rewrite this piece of code in terms of streams from Java 8</p>
  
  <pre><code>for (Medium medium : sortierteMedien) {
      System.out.println("Fuenf aehnlichste Medien fuer " + medium.getClass() + " mit dem Titel " + medium.getTitel() + ":\n");
  
  
      for (Medium medium1 : bibliothek.medienSim(medium)) {
          System.out.println(medium1.toString());
      }
  
      System.out.println();
  }
  </code></pre>
  
  <p>The difficulty here is, that there is a <code>print</code> statement before and after each inner <code>for</code> loop.</p>
  
  <p>Is it possible to rewrite this with streams?</p>