首页 > 应用开发 > > 方法返回值为true,但是两次打印结果却不一样?
Matcher m1 = p1.matcher(content);
System.out.println(m1.find());//true
booleanfindddd = m1.find();
System.out.println(findddd);//false
if(m1.matches() == true) {
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2195/viewspace-3120212/ ,如需转载,请注明出处,否则将追究法律责任。