ucfirst method
Capitalizes the first character of the string.
Implementation
String ucfirst() {
return "${this[0].toUpperCase()}${this.substring(1)}";
}
Capitalizes the first character of the string.
String ucfirst() {
return "${this[0].toUpperCase()}${this.substring(1)}";
}