trying to replace \\n from a String, after removing the \\n op would be "This is not working " String s = "This \\nis \\n\\nnot \\n\\nworking " s.replaceAll(