title: Check if a List/ArrayList contains chars of a string Java
body: <p>I want to check if a string is found in a given list filled with letters.
  For example , if i have : </p>
  
  <pre><code>ArrayList&lt;String&gt; list = new ArrayList();
  list.add("a");
  list.add("e");
  list.add("i");
  list.add("o");
  list.add("u");
  
  String str = "aeo";
  
  for (int i = 0; i &lt; list.size(); i++)
      for (int j = 0; j &lt; str.length(); j++) {
          if (list.get(i).equals(str.charAt(j)))
              count++;
      }
  System.out.println(count);
  </code></pre>
  
  <p>str is found in my letter list so I have to see my count having value 3 , because i've found 3 matches with the string in my list.
  Anyway, count is printed with value 0 .
  The main idea is that i have to check if str is found in the list no matter the order of the letters in str.</p>