I'm suppose to count the number of syllables. I'm doing flesch Index project.
public int syllableCount()
{
int syllable = 0;
for (int i = 0; i <= aWord.length(); i++)
{
do
{
aWord= aWord.substring(i,1);
}
while(aWord.contains("a"));
syllable = syllable +1;
}
return syllable;
}
2007-01-07
16:25:40
·
3 answers
·
asked by
Zena
2
in
Computers & Internet
➔ Programming & Design
aWord is my instance field.
I am trying to count the syllables even the ones counted together.
If I can't count one syllable what makes you think I can count all of them.
2007-01-07
17:07:26 ·
update #1