title: Lambda expressions are not supported at this language level
body: <p>I have a Java class that uses Spark. I need to filter out the header from JavaRDD. This is how I want to do this.</p>
  
  <pre><code>String first = data.first();
  JavaRDD&lt;String&gt; filteredData = data.filter((String s) -&gt; {return !s.contains(first);});
  </code></pre>
  
  <p>However, this code <code>data.filter((String s) -&gt; {return !s.contains(first);})</code> cannot be compiled. IntelliJ IDE says "Lambda expressions are not supported at this language level". </p>