class Teste {
public static void main
(String[] args
) { String teste1
= "a\\b\\c\\d\\e"; String teste2
= teste1.
replace("\\",
""); String teste3
= teste1.
replaceAll("\\\\",
""); }
}
Y2xhc3MgVGVzdGUgewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIFN0cmluZyB0ZXN0ZTEgPSAiYVxcYlxcY1xcZFxcZSI7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHRlc3RlMSk7CiAgICAgICAgU3RyaW5nIHRlc3RlMiA9IHRlc3RlMS5yZXBsYWNlKCJcXCIsICIiKTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4odGVzdGUyKTsKICAgICAgICBTdHJpbmcgdGVzdGUzID0gdGVzdGUxLnJlcGxhY2VBbGwoIlxcXFwiLCAiIik7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHRlc3RlMyk7CiAgICB9Cn0=