SyntaxFix
Write A Post
Hire A Developer
Questions
You need to create the variable to assign the new value to, like this:
String str = string.replaceAll("abcd","dddd");