title: Ignoring uppercase and lowercase on char when comparing
body: <p>The goal of this is to get a sentence from the user and determine how many of each vowel shows up.The majority of this is done except I am not sure how to ignore uppercase and lowercase letters but I am guessing equalsIgnoreCase or toUpperCase(). </p>
  
  <p>I'd like to also know if there is another way to do this  using some other classes of <code>String</code>, <code>StringBuilder</code>, or <code>Character</code>. I'm still new to programming and this chapter is killing me.</p>
  
  <pre><code>    int counterA=0,counterE=0,counterI=0,counterO=0,counterU=0;
      String sentence=JOptionPane.showInputDialog("Enter a sentence for vowel count");        
  
      for(int i=0;i&lt;sentence.length();i++){
          if(sentence.charAt(i)=='a'){
              counterA++;}
          else if(sentence.charAt(i)=='e'){
              counterE++;}
          else if(sentence.charAt(i)=='i'){
              counterI++;}
          else if(sentence.charAt(i)=='o'){
              counterO++;}
          else if(sentence.charAt(i)=='u'){
              counterU++;}
          }   
      String message= String.format("The count for each vowel is \nA:%d\nE:%d\nI:%d\nO:%d\nU:%d",
              counterA,counterE,counterI,counterO,counterU);  
      JOptionPane.showMessageDialog(null, message);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>code here</p>