title: Java 8 Lambda Expressions - what about multiple methods in nested class
body: <p>I'm reading about the new features at: <a href="http://www.javaworld.com/article/2078836/java-se/love-and-hate-for-java-8.html" rel="noreferrer">http://www.javaworld.com/article/2078836/java-se/love-and-hate-for-java-8.html</a></p>
  
  <p>I saw the example below:</p>
  
  <p><strong>Using Anonymous Class:</strong></p>
  
  <pre><code>button.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent ae) {
          System.out.println("Action Detected");
      }
  });
  </code></pre>
  
  <p><strong>With Lambda:</strong></p>
  
  <pre><code>button.addActionListener(e -&gt; {
      System.out.println("Action Detected");
  });
  </code></pre>
  
  <p>What would someone do with a <code>MouseListener</code> if they wanted to implement multiple methods within the anonymous class, e.g.:</p>
  
  <pre><code>public void mousePressed(MouseEvent e) {
      saySomething("Mouse pressed; # of clicks: "
                 + e.getClickCount(), e);
  }
  
  public void mouseReleased(MouseEvent e) {
      saySomething("Mouse released; # of clicks: "
                 + e.getClickCount(), e);
  }
  </code></pre>
  
  <p>... and so on?</p>