I have a java string with \" \" from a text file the program accesses with a Buffered Reader object. I have tried string.replaceAll(\"
\" \"
string.replaceAll(\"
Strings are immutable so You need to do
string = string.replaceAll(" ","")