0

Need to write a program that capitalize vowel letter

Please help me https://code.sololearn.com/WWaZJwFoN0v3/?ref=app

28th Jul 2022, 5:05 PM
k gready
k gready - avatar
1 Antwort
+ 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.
28th Jul 2022, 5:43 PM
Alex
Alex - avatar