Solución
solution.tsTypeScript
public class Solution {
public int countUppercase(String text) {
int count = 0;
for (int i = 0; i < text.length(); i++){
if (text.charAt(i) >= 'A' && text.charAt(i) <= 'Z'){
count += 1;
}
}
return count;
}
}
0respuestas