Mac*_*ack -1 java string syntax
这是最微不足道的问题,但我无法弄清楚如何解决这个问题.
在一个字符串中,我想重新发现此字符串的所有出现"with this""
我的问题是编译器不允许我写""""或""""(希望这是有道理的).
所以我的代码是:
s = s.replace('"', '""'); // so the 2nd parameter of the method is causing an error
Run Code Online (Sandbox Code Playgroud)
我希望这是有道理的:P
| 归档时间: |
|
| 查看次数: |
115 次 |
| 最近记录: |