特殊字符前面加斜线的代码下载

weixin_39821051 weixin_39821051 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
char[] specialChars = {'(',')','*','.'};
String test = "()*.";
String result = "";
char temp;
boolean isExist = false;
for (int i = 0; i < test.length(); i++) {
temp = test.charAt(i);
isExist = false;
for (int j = 0; j < specialChars.length; j++) {
if (temp == specialChars[j]) {
isExist = tr
相关下载链接://download.csdn.net/download/jelon520/2816992?utm_source=bbsseo
...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部