Answer the question
In order to leave comments, you need to log in
How to count the number of characters in a string?
I need to display the number of characters entered in the EditText (Input) after pressing the button in the TextView (Output)
public void Count(View view) {
String S = Input.getText().toString();
Output.setText(S.length());
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question