java replaceAll替换括号报错
Stringkk="a=b)";kk.replaceAll(")","");请问这么为什么错了用kk.replace就没错Exceptioninthread"main"j...
String kk="a=b)";
kk.replaceAll(")","");
请问这么为什么错了 用kk.replace就没错
Exception in thread "main" java.util.regex.PatternSyntaxException: Unmatched closing ')' 展开
kk.replaceAll(")","");
请问这么为什么错了 用kk.replace就没错
Exception in thread "main" java.util.regex.PatternSyntaxException: Unmatched closing ')' 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询