title: How to filter List in Java using stream comparing 2 list
body: <p>I try to filter a list in java using streams. But it is not working and the IDE do not show suggested methods.</p>
  
  <p>I have a list called <code>userServices</code> and the elements in it has a method called <code>getServiceName</code>, I want to filter that I want to make a new list that includes the elements whose name is not in the another list that called <code>expensesOftheUser</code>.</p>
  
  <pre><code>    List&lt;UserServices&gt; userServices = policyService.getAllUserServicesForMoveStage(employee.getPolicyVersionId(), null, false, false);
          List&lt;Expense&gt; expensesOftheUser = expenseService.getExpensesByUserId(employee.getUserId(),employee.getMoveId());
  
  // here I try to filter to a new list but I don't see any IDE suggestion
  List&lt;UserService&gt; filteredUserServices = userServices.stream()
                .filter(c -&gt; c.getServiceName != expensesOftheUser.getServiceName)
                .collect(toList());
  </code></pre>
  
  <p>But it is not working. How can I filter it and make a new list?</p>
  
  <p>edit: lists types are different but the compared properties are all string</p>