Write a java program to rearrange a string by placing all vowels in the beginning and consonants after that
Answers
Answered by
1
Answer:
Given a string, rearrange characters of the given string such that the vowels and consonants occupy alternate position. If string can not be rearranged in desired way, print “no such string”. The order of vowels with respect to each other and the order of consonants with respect to each other should be maintained.
Similar questions