capitalizeFirst method
"hellow world" -> "Hellow world"
Implementation
String capitalizeFirst() {
if (isEmpty) return this;
return this[0].toUpperCase() + substring(1);
}
"hellow world" -> "Hellow world"
String capitalizeFirst() {
if (isEmpty) return this;
return this[0].toUpperCase() + substring(1);
}