This program is supposed to take a
word which is entered by the user, and using the switch statement in the NumberOfVowels method compute the number of vowels in the word and and return that to the main method to be displayed. The problem is, I keep getting these errors that I can't seem to fix. This is exactly how my
java text book does the same switch statement.
If anyone has any suggestions as to how I might fix this, I would be eternally grateful. Below is the code, and the error messages...
error:
C:\Documents and Settings\Administrator\My Documents\VowelCount.java:29: incompatible types
found : java.lang.String
required: int
int count = NumberOfVowels(input, NumChar
*the errors continue all through the other vowels in the switch statement*