How do you replace double quotes with a blank space in Java?

前端 未结 4 1085
谎友^
谎友^ 2020-12-16 10:55

For example:

\"I don\'t like these \"double\" quotes\"

and I want the output to be

I don\'t like these double quotes
         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 11:22

    Strings are immutable, so you need to say

    sInputString = sInputString("\"","");
    

    not just the right side of the =

提交回复
热议问题