How to have "&" i.e and symbol in Android TextView

Jyotishgher Astrology
By -
0

 

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
  1. String s1="My name is Blog. My name is Blog1. My name is Blog2.";  
  2. String replaceString=s1.replaceAll("is","was");//replaces all occurrences of "is" to "was"  
  3. System.out.println(replaceString);  

Post a Comment

0Comments

Post a Comment (0)