Pattern pattern=Pattern.compile("(.)\\1+");//String address="新小区2号楼";String address="小门东大街887号";pattern.matcher(address).find();System.out.println(pattern.matcher(address).find());为什么"小门东大街887号"是true,而"新小区2号楼"是false
繁华开满天机
慕沐林林
相关分类