I have to replace all occurrences of ")(" in a string by " ", and then, delete all the occurrences of "(" and ")". For example : (1,1)(2,2) => (1,1 2,2) => 1,1 2,2. I've tried this for the first step but the string wasn't changed:
String test = "(1,1)(2,2)";
test.replaceAll(Pattern.quote(")("), Pattern.quote(" "));