title: Lambda return type as generic
body: <p>Could someone help me how to write lambda implementation for the following functional interface.</p>
  
  <pre><code>public interface InnerLambda {
  
      public  &lt;R&gt; R test(String str);
  
  }
  </code></pre>
  
  <p>And I have a class well </p>
  
  <pre><code>public class Example {
  
      public static void main(String[] args) {
  
        testInner(str-&gt;"");
  
      }
  
      public static void testInner(InnerLambda innerLambda){
  
      }
  }
  </code></pre>