title: How do you use charAt with an array?
body: <p>i am having a bit of trouble in implementing charAt with an array. I am a beginner in Java (and this is my only coding experience i suppose).</p>
  
  <p>The objective: To create a program that the user inputs any string, and the total number of vowels are recorded in the output (case sensitive)</p>
  
  <p>example:
      Input: charActer
      Output:
      a = 1
      A = 1
      e = 1</p>
  
  <pre><code>import java.util.Scanner;
  public class HW5 {
  public static void main(String[] args) {
  String [] alphabets = 
  {"aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ"};
  String vowels = "aAeEiIoOuU";
  int found = 0;
  Scanner sc = new Scanner(System.in);
  System.out.print("Please enter any word: ");
  String inputStr = sc.nextLine();
  for(int i=0;i&lt;alphabets.length;i++)
      {
          if(alphabets.charAt[i] == vowels)
  </code></pre>
  
  <p>*Note: Program is not complete.</p>