I need some help to replace all the single quotes in a string.
This is my string: The State of the water = 'ICE'
I want to remove the single quotes around ICE.
str = str.replaceAll("\'","");
Use this
String str = "The State of the water = 'ICE'";
str = str.replaceAll("'","");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With