title: Remove all vowels in a string with Java
body: <p>I am doing a homework assignment for my Computer Science course. The task is to get a users input, remove all of the vowels, and then print the new statement. </p>
  
  <p>I know I could easily do it with this code:</p>
  
  <pre><code>string.replaceAll("[aeiou](?!\\b)", "")
  </code></pre>
  
  <p>But my instructor wants me to use nested if and else if statements to achieve the result. Right now I am using something like this:</p>
  
  <pre><code>if(Character.isLetter('a')){
      'do something'
  }else if(Character.isLetter('e')){
      'do something else'
  </code></pre>
  
  <p>But I am not sure what to do inside the <code>if</code> and <code>else if</code> statements. Should I delete the letter? Or is there a better way to do this?</p>
  
  <p>Seeing as this is my homework I don't want full answers just tips. Thanks!</p>