forum

Home / DeveloperSection / Forums / Remove brackets character in java string

Remove brackets character in java string

Anonymous User 1874 08-Dec-2015
I want to remove all type of brackets character (example: [],(),{}) in string by using java.

I am doing it like this :

String test = "watching tv (at home)"; 
test = test.replaceAll("(","");
test = test.replaceAll(")","");

But its not working . Suggest me a solution please. 

Updated on 08-Dec-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By