Java Utililty Methods String Starts Wtih

List of utility methods to do String Starts Wtih

Description

The list of methods to do String Starts Wtih are organized into topic(s).

Method

StringstartsWithSlash(String url)
starts With Slash
return url.startsWith("/") ? url : "/" + url;
booleanstartsWithSpace(String s)
starts With Space
if (s != null && s.length() > 0) {
    char first = s.charAt(0);
    if (first == ' ')
        return true;
return false;
booleanstartsWithSpaces(final String text)
starts With Spaces
final char ch = text.charAt(0);
return Character.isWhitespace(ch);
booleanstartsWithTag(String html, int position)
starts With Tag
return html.charAt(position) == '<';
booleanstartsWithUppercase(String str)
Returns true if the given string starts with an uppercase letter.
if (str.length() == 0) {
    return false;
return isUppercase(str.charAt(0));
booleanstartsWithUpperCase(String text)
starts With Upper Case
return Character.isUpperCase(text.charAt(0));
booleanstartsWithURIScheme(String arg)
Determines if a prefix of the specified String is conform to an URI definition.
if (arg == null || arg.length() == 0)
    return false;
char c = arg.charAt(0);
int i = arg.indexOf(':');
if (i < 1 || !isAsciiLetter(c))
    return false;
while (--i > 0) {
    c = arg.charAt(i);
...
booleanstartsWithVowel(String string)
starts With Vowel
char[] stringChars = string.toCharArray();
vowelLoop: for (char c : VOWELS) {
    for (char c2 : stringChars) {
        if (Character.isLetter(c2)) {
            if (c2 == c) {
                return true;
            } else {
                continue vowelLoop;
...
booleanstartsWithVowel(String text)
starts With Vowel
text = text.toUpperCase();
return text.startsWith("A") || text.startsWith("E") || text.startsWith("I") || text.startsWith("O")
        || text.startsWith("U");
booleanstartsWithVowel(String value)
Check to see if the string starts with a vowel.
if ((value == null) || value.equals("")) {
    return false;
char lower = Character.toLowerCase(value.charAt(0));
return (lower == 'a') || (lower == 'e') || (lower == 'i') || (lower == 'o') || (lower == 'u');