public static boolean startsWith(final CharSequence charSequence, final char character) {
        return charSequence != null && charSequence.length() > 0 && charSequence.charAt(0) == character;
    }
public static boolean startsWith ( final CharSequence charSequence , final char character ) { return charSequence != null && charSequence . length ( ) > 0 && charSequence . charAt ( 0 ) == character ; }
@param charSequence can be null.
@param character will be validated.
@return true if the passed sequence starts with the given character.