15
adempus
3y

String someStr = "your name";

// but i wanna capitalize it
someStr.capitalize(); // <-- operation has no effect

// ughh, fine 😒
String cappedStr = someStr.capitalise();

// wish I could just do this:
someStr .= capitalize(); // but it throws error 😩

Comments
Add Comment