How to have "&" i.e and symbol in Android TextView | Solution Of &
Java String replaceAll()
The Java String class replaceAll() method returns a string replacing all the sequence of characters matching regex and replacement string.
Let One example
holder.textf.setText(getDataAdapter1.getFORMS().replaceAll("&","&"));
OR
- String s1="My name is Blog. My name is Blog1. My name is Blog2.";
- String replaceString=s1.replaceAll("is","was");//replaces all occurrences of "is" to "was"
- System.out.println(replaceString);
Post a Comment
0Comments