capitalizeFirst static method
Uppercase first letter inside string and let the others lowercase 字符串的首字母大写,其他字母小写 Example: your name => Your name
Implementation
static String? capitalizeFirst(String s) {
if (ObjectUtils.isNullOrBlank(s)) return null;
return s[0].toUpperCase() + s.substring(1).toLowerCase();
}