Solución
solution.tsTypeScript
public class Solution {
public int countSpaces(String text) {
// Escribe tu solución aquí
int a = 0;
text.length();
for (int i = 0; i < text.length(); i++) {
if (text.charAt(i) == ' ') {
a++;
}
}
return a;
}
}0respuestas