Solución
solution.tsTypeScript
public class Solution {
public String capitalizeFirstLetter(String text) {
if (text == null || text.isBlank()) return text;
char firstChar = text.charAt(0);
if (Character.isUpperCase(firstChar)) return text;
return Character.toUpperCase(firstChar) + text.substring(1);
}
}0respuestas