title: In Java 8, can I use streams to filter a partial string?
body: <p>In Java 8, can I use streams to filter a partial string?  </p>
  
  <p>Let us assume I have a list of animals like:</p>
  
  <pre><code>Brown Bear
  Black Bear
  Black Crow
  Red Herring 
  Owl
  Sparrow
  Blackbacked Flocking Crow
  </code></pre>
  
  <p>Let us assume all of the Animals names are in a list of Animals Objects</p>
  
  <pre><code>public class Animal{
      public name;
      public animalType;
  }
  </code></pre>
  
  <p>Is there some way to find all of the animals that have Black regardless of the case somewhere in the name.  Something like the following...</p>
  
  <pre><code>List&lt;Animal&gt; filtList = employeeList.stream()
      .filter(x -&gt; "%Black%".toUpperCase().equals(x.getLastName().toUpper()))
      .collect(Collectors.toList());
  </code></pre>