5
I have a following string "|" and I would like to replace it with a simple "", my java code is like this:
String teste = "|A|B|C";
teste.replaceAll("|","");
Exit:
"|A|B|C"
I would like the output to be without "|", I have tested with other characters worked normal, but with this I can not do replaceAll. Could someone show me another way to withdraw or explain why this happens?