write a java program to input a string in uppercase and replace the vowels with the next vowel
Answers
Answered by
0
Explanation:
Accept the input String through the console by using Scanner class.
Convert the input String into a character array using toCharArray() method.
Using for-loop iterate over the array.
Using if condition, check each element in the array whether it is a vowel or not, if it is vowel then replace it with $ symbol.
Similar questions