title: What does it mean that a Listener can be replaced with lambda?
body: <p>I have implemented an <code>AlertDialog</code> with normal negative and positive button click listeners. </p>
  
  <p>When I called <code>new DialogInterface.OnClickListener()</code> it was showing me a suggestion saying: <code>Anonymous new DialogInterface.OnClickListener() can be replaced with lambda</code>. I know it's not an error or something big but what exactly is this suggestion and what can I do about it?</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(this);
  builder.setPositiveButton("Text", new DialogInterface.OnClickListener() {
      @Override
      public void onClick(DialogInterface dialog, int which) {
          // do something here
      }
  });
  </code></pre>
  
  <p><code>Android Studio V1.2.1.1
   compileSdkVersion 22
   buildToolsVersion "22.0.0"
   minSdkVersion 14
   targetSdkVersion 22</code></p>