Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/195.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android如何从字符串中删除(";)字符_Android_String_Replace_Character - Fatal编程技术网

Android如何从字符串中删除(";)字符

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("\"", "");

我想从字符串中删除(“)字符

这是我的文本

“69452;6486699“

我需要这篇文章

69452;6486699

我尝试使用字符串。替换

 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分钟,我没有时间等待哦,对了,哈哈,我没意识到他们没有通过