title: Java 8 for each and first index
body: <p>Anyone knows how to achieve following piece code in a Java 8 way respectively is there any stream methods to detect the first element in a forEach?</p>
  
  <pre><code>List&lt;String&gt; myList = new ArrayList&lt;String&gt;();
  myList.add("A");
  myList.add("B");
  
  int i = 0;
  
  for (final String value : myList) {
     if (i == 0) {
       System.out.println("Hey that's the first element");
     }
  
     System.out.println(value);
  
     i++;
   }
  </code></pre>
  
  <p>Java8:</p>
  
  <pre><code>myList.stream().forEach(value -&gt; {
    // TODO: How to do something special for first element?
  
    System.out.println(value);
  });
  </code></pre>
  
  <p>Furthermore, let's says that the goal is the following (console output):</p>
  
  <pre><code>A    Something special
  B
  C
  D
  E
  F
  </code></pre>