title: Check if a list on strings contains a string from another list
body: <p>I have two lists of string, 'a' and 'b'. Now I need to check if any of the strings in 'b' contain or equal to any of the strings in 'a'.</p>
  
  <p>This is what I've tried</p>
  
  <pre><code>for (String string : a) {
      if (!contains(string)) {
          // add 'string' to another list. 
      }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>private boolean contains(String a) {
      for (String string : b) {
          if (b.contains(a)) {
              return false;
          }
      }
  
      return true;
  }
  </code></pre>
  
  <p>However, this does not seem to work. Please bear in mind that I'm still fairly new to Java so there's a lot of things I still don't understand.</p>
  
  <p>Edit: I return false in purpose, I just changed the variables to make it more understandable for you.</p>