Ah true, I probably should have read that a little closer.
Ah true, I probably should have read that a little closer.
And I realize that in combination with your indexOf() code, you could do it in about 2 or 3 lines.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
My bad. Replace the 'd' in "HelloWorld" with 'e'.
Well, that won't happen either with your example, because 'e' comes before 'd' in your vowels string.Replace the 'd' in "HelloWorld" with 'e'.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Just put one of vowels characters at the end of newtext and test it.
The code I posted earlier does exactly that. It replaces 'd' with 'o', the next character in the vowels string after 'd'.
Obviously the code you posted in your first post is not your real code, otherwise it would do the same.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks