title: What does '->' do in Java?
body: <p>I was looking at some java tutorials and wasn't sure what '->' did and couldn't find anything on google about it.</p>
  
  <p>Here's some code that I saw that used it:</p>
  
  <pre><code>myShapesCollection.stream()
  .filter(e -&gt; e.getColor() == Color.RED)
  .forEach(e -&gt; System.out.println(e.getName()));
  </code></pre>