Java String Starts Wtih startsWithVowel(String text)

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

Description

starts With Vowel

License

Open Source License

Declaration

public static boolean startsWithVowel(String text) 

Method Source Code

//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");
    }
}

Related

  1. startsWithTag(String html, int position)
  2. startsWithUppercase(String str)
  3. startsWithUpperCase(String text)
  4. startsWithURIScheme(String arg)
  5. startsWithVowel(String string)
  6. startsWithVowel(String value)
  7. startsWithVowel(String word)
  8. startsWithWeight(String s1, String s2)
  9. startsWithWhitespace(final CharSequence charSeq)