replace - Replacing unique character with others in android studio -


i want replace character in string:

"google.com\123" 

i want replace "\" "/" link correct.

string google = "google.com\123"; google = google.replace("\", "/"); 

but doesn't work since "\" character unique.

use code

string google = "google.com\123"; google = google.replace("\\", "/"); 

this work


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -