title: I need to write the following block of code using Java Stream. Can someone please help me out? I'm not familiar with java streams
body: <p>The code below basically ignores the string &quot;header&quot;. I need to write the same code using java stream</p>
  <pre><code>List&lt;String&gt; dataitem1=new ArrayList&lt;&gt;();
  dataitem1.add(&quot;header&quot;);
  dataitem1.add(&quot;B&quot;);
  dataitem1.add(&quot;C&quot;);
  List&lt;String&gt; dataitem2=new ArrayList&lt;&gt;();
  dataitem2.add(&quot;header&quot;);
  dataitem2.add(&quot;B&quot;);
  dataitem2.add(&quot;C&quot;);
  List&lt;List&lt;String&gt;&gt; data=Arrays.asList(dataitem1,dataitem2);
  String x=null;
  for(int i=0;i&lt;data.size();i++){
      for(int j=0;j&lt;data.get(i).size();j++){
                  if((i==0 &amp;&amp; j==0) || data.get(i).get(j).equals(x)){
                      x=data.get(i).get(j);
                      continue;
                  }
                  System.out.println(data.get(i).get(j));
              }
  }
  </code></pre>