Here you can find the source of startsWithVowel(String text)
public static boolean startsWithVowel(String text)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean startsWithVowel(String text) { text = text.toUpperCase();// w ww . j av a2s .c o m return text.startsWith("A") || text.startsWith("E") || text.startsWith("I") || text.startsWith("O") || text.startsWith("U"); } }