previous
|
start
|
next
Sample Debugging Session
Word
class counts syllables in a word
Each group of adjacent vowels (aeiouy) is a syllable
However, an e at the end of a word doesn't count
If algorithm gives count of 0, increment to 1
Constructor removes non-letters at beginning and end
Buggy output:
Syllables in hello: 1
Syllables in regal: 1
Syllables in real: 1
previous
|
start
|
next