title: java stream null check
body: <p><strong>How to better way to check null values inside stream</strong></p>
  
  <pre><code>List&lt;Employee&gt; employees1= employees.stream().filter(
                      employee -&gt; students.stream()
                          .anyMatch(student -&gt;
                                 // checking null
                                  employee!=null &amp;&amp; student!=null &amp;&amp;
                                  employee.getId()!=null &amp;&amp; student.getName()!=null &amp;&amp;
                                  employee.getId()==student.getId() &amp;&amp;
                                  employee.getName().equals(student.getName()))
                  )
                  .collect(Collectors.toList());
  </code></pre>