title: How do I return a boolean if a value is present in a list inside a list using java 8
body: <p>I have a List of objects, which contains a list of Strings. I want to return true if the 'names' list is not null and has size more than 1.</p>
  <p>Consider the below code</p>
  <pre><code>class Obj {
    private List&lt;String&gt; names;
  }
  
  class Test {
    private List&lt;Obj&gt; objs;
  
    public boolean isPresent(String name) {
    //Loop through the list of lists
   }
  }
  </code></pre>
  <p>Here I want to determine if 'names' is not null and has size more than 1 for any of the 'objs' objects. Is there a way we can do this using Streams in java 8?</p>