Write a static method named vowel Count that accepts a strin
     Write a static method named vowel Count that accepts a string as a parameter and produces and returns an array of integers representing the counts of each vowel in the String The array returned by your method should hold 5 elements: the first is the count of As, the second is the count of Es, the third Is, the fourth Os. and the fifth Us. Assume that the string contains no uppercase letters.  For example, the call vowel Count (\"i think, therefore l am\") should return the array {1, 3, 3, 1, 0). 
  
  Solution
public class Demo{
 public static int[] vowelCount(String s){
 int a=0;
 int e=0;
 int i=0;
 int o=0;
 int u=0;
 int arr[]=new int[5];
 for(int j = 0; j < s.length(); j ++){
        if(s.charAt(j)==\'a\')
 a++;
 else if(s.charAt(j)==\'e\')
 e++;
 else if(s.charAt(j)==\'i\')
 i++;
   
 else if(s.charAt(j)==\'o\')
 o++;
 else if(s.charAt(j)==\'u\')
 u++;
 }
 arr[0]=a;
 arr[1]=e;
 arr[2]=i;
 arr[3]=o;
 arr[4]=u;
   
  
 return arr;
 }
 public static void main(String... s){
 int array[]=new int[5];
 array=vowelCount(\"i think, therefore i am\");
 for(int j = 0; j < 5;j ++){
 System.out.println(array[j]);}
   
 }
 }

