I need to after clicking the button in the TextView (Output) output the number of characters entered in EditText (Input)
public void Count(View View) {
String S = Input.getText().toString();
Output.setText(S. length());
}
For some reason it's not working, what am I doing wrong?
- camron.Herzog commented on July 8th 19 at 11:33
In the end I got confused, nothing works :( - camron.Herzog commented on July 8th 19 at 11:39
- camron.Herzog commented on July 8th 19 at 11:45
- camron.Herzog commented on July 8th 19 at 11:51
- camron.Herzog commented on July 8th 19 at 11:57
- camron.Herzog commented on July 8th 19 at 12:12
public void onButtonClick(){
String S = input.getText().toString();
String D = String.valueOf(S. length());
output.setText(D);
} - mazie.Towne commented on July 8th 19 at 12:18