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.
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.
Use this
String str = "The State of the water = 'ICE'";
str = str.replaceAll("'","");