title: Traversal of basic linked list using Java 8 Lambda and Streams
body: <p>Are there anyway to traverse a basic Linked List using Java 8 lambda? Lets if below is signature of a Node </p>
  
  <pre><code>public class ListNode {
    int val;
    ListNode next;
    ListNode(int x) { val = x; }
  }
  </code></pre>
  
  <p>and this is my test data:</p>
  
  <pre><code>    ListNode node1 = new ListNode(90);
      node1.next = new ListNode(200);
      node1.next.next = new ListNode(300);
      node1.next.next.next = new ListNode(400);
  </code></pre>
  
  <p>Is it possible to traverse using Java 8 lambda/ stream?</p>
  
  <p>Thanks!</p>