Java String Starts Wtih startsWithLowerCaseChar(String s)

Here you can find the source of startsWithLowerCaseChar(String s)

Description

Checks if a string starts with lower case char.

License

LGPL

Parameter

Parameter Description
s the string to check

Return

true if the string starts with lower case char.

Declaration

public static boolean startsWithLowerCaseChar(String s) 

Method Source Code

//package com.java2s;
/*//  ww  w  .  j a  v a 2s .  c  o m
 *   This software is distributed under the terms of the FSF 
 *   Gnu Lesser General Public License (see lgpl.txt). 
 *
 *   This program is distributed WITHOUT ANY WARRANTY. See the
 *   GNU General Public License for more details.
 */

public class Main {
    /**
     * Checks if a string starts with lower case char.
     * @param s the string to check
     * @return true if the string starts with lower case char.
     */
    public static boolean startsWithLowerCaseChar(String s) {
        int c0 = (int) s.charAt(0);
        return (c0 >= 97 && c0 <= 122) ? true : false;
    }
}

Related

  1. startsWithLenient(final String s, final String[] matches, final int[] minChars, final boolean acceptTrailing)
  2. startsWithLetter(String str)
  3. startsWithLetterOrUnderscore(String value)
  4. startsWithLinuxRoot(String path)
  5. startsWithLowerCase(String text)
  6. startsWithMultiple(String string, String... starts)
  7. startsWithName(String subject, String beginName)
  8. startsWithNoCase(String csValue, String csStart)
  9. startsWithOne(final String src, final String[] dest)