+ 1

String has combination of vowels and consonants.if there are any two vowels are adjacent to each other then swap those two vowel

for example string="abcieobcio" in this string at "ieo" are adjacent vowels and at "up" at last adjacent vowels are there.so swap them and print the string after swapping those vowels.

28th Sep 2018, 3:29 AM
Nagapavan
3 Respostas
+ 2
you can do it e.g. compare if given letters is a consonant if true then if next letters is a consonant... you can use loop for(); charAt(); contsins();
28th Sep 2018, 7:18 AM
Daniel (kabura)
Daniel (kabura) - avatar
+ 1
bro write the code and send to me please. I am unable to understand with words
29th Sep 2018, 8:43 AM
Nagapavan
0
ok thank you bro.I will try
1st Oct 2018, 3:33 PM
Nagapavan