title: How to remove from the list of objects those objects whose id is given in another list JAVA?
body: <pre><code>public class Person {
      private long id;
      private String name;
  }
  </code></pre>
  
  <pre><code>List&lt;Person&gt; persons= Arrays.asList(new Person(1,"Alex"),new Person(2,"Danny"),new Person(3,"Frank"));
  List&lt;Long&gt;ids=Arrays.asList(1L,5L);
  </code></pre>
  
  <p>How to effectively remove objects from the list of persons whose id is on the list of ids?? 
  The best way for me is to use streams.</p>