I want to remove all type of brackets character (example: [],(),{}) in string by using java.
I tried using this code:
String test = "watching tv (at home)";
test = test.replaceAll("(","");
test = test.replaceAll(")","");
But it's not working, help me please.
See Question&Answers more detail:os