0
Need to write a program that capitalize vowel letter
Please help me https://code.sololearn.com/WWaZJwFoN0v3/?ref=app
1 Odpowiedź
+ 2
You are only returning the first char. Instead of returning you should append it to a new string and return the whole word at the end of the for loop.
Edit: or use replace. Or even better: replaceAll. Then you wouldn't even need a loop.