I have following StringBuilder and I want to replace ' with " but I am not able to achieve the same.
Code :
StringBuilder sb = new StringBuilder("'DateTime',");
String word = sb.toString().replace("'",""");
At line number two, I am getting compilation error. I tried same method for other character and its wroked poper but for " character I am not able to achieve with same method. Might be its little simple but still I am not able to figure out.
I am trying to get following output.
Output : "DateTime",