title: Implementing an interface with two abstract methods by a lambda expression
body: <p>In Java 8 the <strong><em>lambda expression</em></strong> is introduced to help with the reduction of boilerplate code. If the interface has only one method it works fine. If it consists of multiple methods, then none of the methods work. How can I handle multiple methods? </p>
  
  <p>We may go for the following example</p>
  
  <pre><code>public interface I1()
  {
      void show1();
      void show2();
  }
  </code></pre>
  
  <p>Then what will be the structure of the main function to define the methods in the main itself?</p>