title: How can I make a simple vowel counter method in Java?
body: <p>Here's my method:</p>
  
  <pre><code>public char[] ReturnAllVowels(String word)
  {
      for (int i = 0; i &lt; word.length(); i++)
      {
          if (word.contains("a" || "e" || "i" || "o" || "u"))     
          {
  
          }
      }        
  }
  </code></pre>
  
  <p>It says that || cannot be applied to String class. How can I do this then?</p>