How do you remove double quotes from a string?

thanhthao

New member
How do you remove double quotes from a string?
Answer
To remove one or more double quotes from the start and end of a string in Java, you need to use a regex based solution: String result = input_str. replaceAll(“^”+|”+$”, “”);
 

Tìm kiếm

Back
Top