Java implementation of the above approach
import java . util . * ; class GFG { static boolean find ( char x [ ] , char c ) { for ( int i = 0 ; i < x . length ; i ++ ) if ( x [ i ] == c ) return true ; return false ; } static boolean find ( Vector < Character > v , char c ) { for ( int i = 0 ; i < v . size ( ) ; i ++ ) if ( v . get ( i ) == c ) return true ; return false ; } static void addAllVowel ( String str ) {