Android如何从字符串中删除(";)字符
我想从字符串中删除(“)字符 这是我的文本 “69452;6486699“ 我需要这篇文章 69452;6486699 我尝试使用字符串。替换Android如何从字符串中删除(";)字符,android,string,replace,character,Android,String,Replace,Character,我想从字符串中删除(“)字符 这是我的文本 “69452;6486699“ 我需要这篇文章 69452;6486699 我尝试使用字符串。替换 text = text.replace(""",""); 而且不起作用 我也用过这种方法 text = text.replace("/"",""); 但不会再这样了 谁能帮我?!斜杠打错了。用反斜杠: text = text.replace("\"", ""); 你需要像这样尝试 text = text.replace("\"", "");
text = text.replace(""","");
而且不起作用
我也用过这种方法
text = text.replace("/"","");
但不会再这样了
谁能帮我?!斜杠打错了。用反斜杠:
text = text.replace("\"", "");
你需要像这样尝试
text = text.replace("\"", "");
看看这是什么
text = text.replace("\"", "");
反斜杠(\
)用于转义特殊字符,正斜杠(/
)只是普通字符,没有特殊意义。使用此代码
text.replace("\"", "");
反斜杠()用于转义特殊字符,正斜杠(/)只是一个普通字符,在字符串中没有特殊意义。我可能会吹毛求疵,但它是
replace(string,string)
而不是replace(string,string)
(Java中的方法以小写字母开头)点击所需答案下方的勾号接受它(三者几乎相同),并正式将问题标记为已解决;)我知道,伙计,但我应该等10分钟,我没有时间等待哦,对了,哈哈,我没意识到他们没有通过