Here you can find the source of startsWithVowel(String word)
public static boolean startsWithVowel(String word)
//package com.java2s; //License from project: Apache License public class Main { private static final String vowels = "aeiou"; public static boolean startsWithVowel(String word) { if (word.length() == 0) return false; char firstLetter = word.toLowerCase().charAt(0); return vowels.indexOf(firstLetter) > -1; }//from www . j a v a2s. c om }