Back To Java Arrays Index
//program to input a char array (string) and count number of vowels in the string public class countvowelschararray { public static void main(String[] args) { char []str={'s','d','e','y','o'}; char ch; int i; int count=0; int l; l=str.length; for(i=0;i