title: Finding the index of the first vowel in a string
body: <p>So i'm having trouble finding the index of the first vowel in a string. This is the code I came up with but its not returning anything.
  Its supposed to return the index of the first vowel for example if the string was "Hello World" it should return 1 because the index of the first vowel is 'e'. If there is no vowel in the given string it should return -1.</p>
  
  <pre><code>public class Vowel
  {
      public static int isVowel(String s)
      {
          int a = -1;
          for(int i = 0; i &lt; s.length(); i++)
          {
              if("aeiouAEIOU".indexOf(i) &gt;= 0)
              {
                  a = i;  
              }
          }
          return a;
      }
  }
  </code></pre>