Issue in UI Is:

How to replace the sequence \/ in android?
I Use below replace method but it show invalid escape sequences.
tempLabelForListView[i].replaceAll("\/", "")
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t need to use
String#replaceAllmethod, which takes aregexas parameter. Rather, just useString#replacemethod, and you need to escape the\with another backslash. And you need to re-assign the replaced string to your target string, since string is immutable, and the replacement will not affect the current string, rather return a new string: –As for
String#replaceAllmethod, since it takes a regex, you would need to escape the backslash twice. Once forJavaand once forregex. So, you would need 4 backslashes to make it work withreplaceAll: –But still, you don’t need it here.