title: Java 8 filter with method call
body: <p>I am learning Java 8 lambda and streams and trying some examples. But facing problem with it. here is my code</p>
  
  <pre><code>fillUpdate(Person p){
      List&lt;Address&gt; notes = getAddress();
      notes.stream().filter( addr -&gt; addr !=null).map( this::preparePersonInfo,p,addr);
  }
  private void preparePersonInfo(Person p, Address addr){
      // do some stuff
  }
  </code></pre>
  
  <p>Am getting compilation error in .map <strong>addr</strong>(second argument) field.
  what wrong in it and could you please provide links to learn java 8 streams.
  FYI am following this link <a href="http://www.leveluplunch.com/java/tutorials/006-how-to-filter-arraylist-stream-java8/" rel="noreferrer">Java 8 lambda</a></p>