السلام عليكم ورحمه الله وبركاته
عندي سوال للي هو برنامج يحسب كم عدد حروف العله في الكلمه
وانا كتبتوب بس فيلو غلط
كود:
public class count{
public int CountnumbersOfVowelsPerRow (String[]a) {
int count=0;
size=a.length;
for(int i=0;i<size;i++){
if(a[i]='a' || a[i]='e' || a[i]='i' || a[i]='o' || a[i]='u' || a[i]='y')
count=count+1;
return count;
}
System.out.println("the vowels is =" count)
}
public static void main(String[]s){
Count Count1=new Count
String []data={"","gfgf"}
}
int temp=count_numbers_Of_vowels_Per_Row1.countnumbersOfVowelsPerRow(data,3);
System.out.println(temp);
}
}