xxxxxxxxxx
original_string = "This is a 'string' with single quotes."
modified_string = original_string.replace("'", "")
print(modified_string)
xxxxxxxxxx
public class RemoveCharacter
{
public static void main(String[] args)
{
String MyString = "Hello World";
System.out.println("The string before removing character: " + MyString);
MyString = MyString.replace("e", "");
System.out.println("The string after removing character: " + MyString);
}
}