0

How to take letters from an array of Strings Java

I have to iterate a array of Strings and take out the consonants of every word in every index. But i cannot find the right String method. Do you have any suggestions? Eg.: String [] names = {"Jess", "Amy", "Anne"} return an array { "e", "Ay", "Ae"}

20th Feb 2020, 3:03 PM
Pame
Pame - avatar
10 Respostas
+ 5
Pame You can take help of this code if you want Array of vowels. https://code.sololearn.com/cA49IqX64Px1/?ref=app
20th Feb 2020, 3:42 PM
A͢J
A͢J - avatar
+ 2
Avinesh Thanks. That's what I wanted.
21st Feb 2020, 3:45 PM
A͢J
A͢J - avatar
20th Feb 2020, 3:54 PM
Pame
Pame - avatar
+ 1
RAJESH PERAM hi! Don't spam in the answers please. If you have a question, you can open a new thread.
22nd Feb 2020, 2:22 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Consonants are non-vowels, aren't they?
20th Feb 2020, 3:36 PM
Avinesh
Avinesh - avatar
0
Avinesh yes!
20th Feb 2020, 3:39 PM
Pame
Pame - avatar
0
So how come you have 'A' 'e' ?
20th Feb 2020, 3:40 PM
Avinesh
Avinesh - avatar
0
Avinesh by take them out i meant that i want to erase non-vowels, and leave only the vowels inside the array (English is not my first language, sorry)
20th Feb 2020, 3:45 PM
Pame
Pame - avatar
0
🅰🅹 - Pʀᴏᴅᴜᴄᴛ Mᴀɴᴀɢᴇʀ To print the array, we can simply write. System.out.print(Arrays.toString(arr1)); Nice one 👍
20th Feb 2020, 4:25 PM
Avinesh
Avinesh - avatar
0
Hlo
22nd Feb 2020, 2:07 AM
RAJESH PERAM
RAJESH PERAM - avatar