Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- strArr = s.split("\\s+"); //get array of words from the String s
- for (int i = 0; i < strArr.length; i++) {
- if (strArr[i].length() > 2 && vowelsList.contains(strArr[i].charAt(0))) {
- if (vowelsList.contains(strArr[i].charAt(strArr[i].length() - 1))){
- count++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement