- 博客(1)
- 收藏
- 关注
原创 java转义字符 \\
转移字符对应的英文是escape character , 转义字符串(Escape Sequence) 代码目的:将字符串中的 . 替换为 \ 错误代码 String str = "ab.ad.ef"; String s = str.replaceAll("\\.", "\\"); System.out.println(s); 报错:Exception in ...
2019-05-19 12:53:43
21887
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅