Vikas Sharma
Vikas Sharma

Reputation: 755

How to replace " with blank in a string in java?

I have this string "Distrik Timur". I want to remove " from this string.

I thought String value = translatedValue.replace(""","") will work.But its not working.

Upvotes: 0

Views: 2564

Answers (1)

Louis Wasserman
Louis Wasserman

Reputation: 198211

Quotation marks need to be escaped: write translatedValue.replace("\"", "").

Upvotes: 1

Related Questions