title: Anonymous class can be replaced with lambda?
body: <p>While i'm writing some code in intellij, it keeps popping up, says</p>
  
  <blockquote>
    <p>Anonymous class can be replaced with lambda?  </p>
  </blockquote>
  
  <p>So what does that mean? what is lambda expression and how Anonymous class can be replaced with lambda?  </p>
  
  <pre><code>Play.addActionListener(new ActionListener() {
  @Override
  public void actionPerformed(ActionEvent e) {
  JPanel playscreen = new JPanel();
  playscreen.setBackground(Color.WHITE);
  p.add(playscreen);
  
  }
  });       
  </code></pre>