title: Java 8 How to filter not different entity from two collections?
body: <p>I want to use Java 8 stream filter collections but i found all example is one collections , Java 6 is :</p>
  
  <pre><code>public class User {
  public Long id;
  public String name;
  
  public User(Long id, String name) {
      this.id = id;
      this.name = name;
  }
  
     List&lt;User&gt; usersA = new ArrayList&lt;&gt;();
  
      usersA.add(new User(1l,"A"));
      usersA.add(new User(2l,"B"));
      usersA.add(new User(3l,"C"));
  
      List&lt;User&gt; usersB = new ArrayList&lt;&gt;();
      usersB.add(new User(33l,"A"));
      usersB.add(new User(34l,"B"));
      usersB.add(new User(35l,"D"));
      usersB.add(new User(36l,"C"));
  
      List&lt;User&gt; tempUser = new ArrayList&lt;&gt;();
      tempUser.addAll(usersB);
  
      for (User user : usersA) {
          for (User user1 : tempUser) {
              System.out.println(user1.getName().equalsIgnoreCase(user.getName()));
              if (user1.getName().equalsIgnoreCase(user.getName())){
                  System.out.println("remove:"+user1.getName());
                  tempUser.remove(user1);
                  break;
              }
          }
  
      }
  
      System.out.println("last:"+tempUser);
  </code></pre>
  
  <p>And Java 8 I want to use  stream api not use foreach ,can u take a example for me ? thanks </p>