Here you can find the source of startsWithLowerCaseChar(String s)
Parameter | Description |
---|---|
s | the string to check |
public static boolean startsWithLowerCaseChar(String s)
//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; } }