Computer Science, asked by sourav831, 11 months ago

write a program in Java to store 10 names in sda and display only those words which begins with a vowel and end with a vowel​

Answers

Answered by catt22
6

Explanation:

Create an array a [ ] of size 10

Use for loop from 0 to

String wrd;

Extract a word from array

for (i=0;i<=9;i++)

{

wrd=a[i]

int l=wrd. length ()

char c1=wrd. charAt(0);

char c2=wrd. charAt(l-1);

then check if c1 c2 both are vowels print the word

Similar questions