In my java program, I want to replace the © sign in a string with a space. I used replace method but it seems to not working. What would be the solution?
String text = "ABC©";
text.replace("©", " ");
System.out.println(text);
Output : ABC©
Expected output : ABC