Java String Starts Wtih startsWithLetter(String str)

Here you can find the source of startsWithLetter(String str)

Description

starts With Letter

License

Open Source License

Declaration

private static boolean startsWithLetter(String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static boolean startsWithLetter(String str) {
        if (str == null || str.isEmpty()) {
            return false;
        }// ww w.  ja v  a 2s.com

        char firstChar = str.charAt(0);
        return firstChar >= 'A' && firstChar <= 'z';
    }
}

Related

  1. startsWithIgnoreCaseAndWs(String searchIn, String searchFor, int beginPos)
  2. startsWithIgnoreWhitespace(String str, String prefix)
  3. startsWithIgnoreWhitespaces(String prefix, String string)
  4. startsWithIndex(String[] prefixes, String fullPath)
  5. startsWithLenient(final String s, final String[] matches, final int[] minChars, final boolean acceptTrailing)
  6. startsWithLetterOrUnderscore(String value)
  7. startsWithLinuxRoot(String path)
  8. startsWithLowerCase(String text)
  9. startsWithLowerCaseChar(String s)