The first problem is that the method call mapdoes not declare a variable addr.
The second problem is to use a method with no return type in map.
(map( this::preparePersonInfo,p,addr)), . preparePersonInfo Address, :
notes.stream().filter( addr -> addr !=null).forEach(this::preparePersonInfo);
Address .
, Stream, . preparePersonInfo , map ( map Stream - , - ). , forEach , , , - , .
preparePersonInfo :
notes.stream().filter( addr -> addr !=null).forEach (addr -> preparePersonInfo(p,addr));
source
share