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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…