Hi all,
String x = "\\";
This string will have the value \.
Now for any string contains \, i need to replace with \\.
But when i use x = x.replaceAll("\ \", "\\\\");
I am getting runtime exception.
How can i replace this.
String x = "\\";
This string will have the value \.
Now for any string contains \, i need to replace with \\.
But when i use x = x.replaceAll("\ \", "\\\\");
I am getting runtime exception.
How can i replace this.
Comment