title: Performing specific operation on first element of list using Java8 streaming
body: <p>I want to perform certain operation on first element of my list and different operation for all remaining elements.</p>
  
  <p>Here is my code snippet:</p>
  
  <pre><code>List&lt;String&gt; tokens = getDummyList();
  if (!tokens.isEmpty()) {
      System.out.println("this is first token:" + tokens.get(0));
  }
  tokens.stream().skip(1).forEach(token -&gt; {
      System.out.println(token);
  });
  </code></pre>
  
  <p>Is there any more cleaner way to achieve this preferably using java 8 streaming API.</p>