-1
I need to count the total number of characters of a String when the word is typed. I would like to know how to create the code, I believe it is a.
public class ExercicioDeString {
public String transformarParaMaiusculo(String texto) {
return texto.toUpperCase();
}
public String transformarParaMinusculo(String texto) {
return texto.toLowerCase();
}
public String contarLetras(String texto) {
}
}
I tried using . lenght(); but could not.
Need to be a contact while the person is typing? Why only use the text to count.lenght();
– Pedro Duca
I’m trying to do this but accuses an error, I will update the code and show the images, for better understanding.
– Julio Vieira
And it doesn’t have to be while the person is typing, only after the already typed word.
– Julio Vieira
I reversed your post, because with each Dit you are changing the problem. As I already answered, it was a type error and an error in Return. When you edit a question by changing the direction, invalidate the answers given, when you post the new problem separately
– Bacco
a blz, sorry.
– Julio Vieira