Simply i want to replace a character with another in android.. My code:
et = (EditText) findViewById(R.id.editText1); String str = et.getText().toString(); str.
String is immutable and you cannot change it. So, you need to do this:
str = str.replace(' ','_');