Java String Starts Wtih startsWithVowel(String word)

Here you can find the source of startsWithVowel(String word)

Description

starts With Vowel

License

Apache License

Declaration

public static boolean startsWithVowel(String word) 

Method Source Code

//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
}

Related

  1. startsWithUpperCase(String text)
  2. startsWithURIScheme(String arg)
  3. startsWithVowel(String string)
  4. startsWithVowel(String text)
  5. startsWithVowel(String value)
  6. startsWithWeight(String s1, String s2)
  7. startsWithWhitespace(final CharSequence charSeq)
  8. startsWithWhitespace(String s)
  9. startsWithWithoutBeingFollowedByLetter(String s, String compareTo)