title: Use string methods to find and count vowels in a string?
body: <p>I have this problem for homework (I'm being honest, not trying to hide it at least)
  And I'm having problems figuring out how to do it.</p>
  
  <p>Given the following declarations :   String phrase =  " WazzUp ? - Who's On FIRST ??? - IDUNNO";   Write the necessary code to 
  count the number of vowels in the string and print appropriate message to the screen.</p>
  
  <p>Here's the code I have so far:</p>
  
  <pre><code>String phrase =  " WazzUp ? - Who's On FIRST ??? - IDUNNO";
  int i, length, vowels = 0;
  String j;
  length = phrase.length();
  for (i = 0; i &lt; length; i++)
  {
  
    j = phrase.substring(i, i++);
    System.out.println(j);
  
    if (j.equalsIgnoreCase("a") == true)
      vowels++;
    else if (j.equalsIgnoreCase("e") == true)
      vowels++;
    else if (j.equalsIgnoreCase("i") == true)
      vowels++;
    else if (j.equalsIgnoreCase("o") == true)
      vowels++;
    else if (j.equalsIgnoreCase("u") == true)
      vowels++;
  
  }
  System.out.println("Number of vowels: " + vowels);
  </code></pre>
  
  <p>However, when I run it it just makes a bunch of blank lines. Can anyone help?</p>