title: Filter the sublist in an object and return java 8
body: <p>I need an employee object which should have address having pin 40001 from below object .</p>
  <pre><code>    Employee eObj= new Employee(1,&quot;abc&quot;,10001,
                      Arrays.asList(new Address(&quot;ad1&quot;,&quot;ad2&quot;,&quot;tel&quot;,&quot;40001&quot;),new Address(&quot;ad1&quot;,&quot;ad2&quot;,&quot;tel1&quot;,&quot;40002&quot;)));
  </code></pre>
  <p>// need help to write below logic</p>
  <pre><code>Employee filteredEobj ={Logic}
  </code></pre>
  <p>//Expected response</p>
  <pre><code>new Employee(1,&quot;abc&quot;,10001,Arrays.asList(new Address(&quot;ad1&quot;,&quot;ad2&quot;,&quot;tel&quot;,&quot;40001&quot;));
  How can we achieve this using java 8?
  </code></pre>