正确的:
public static void main(String[] args)
{
String str = "aaa111111111111111111111";
Pattern p = Pattern.compile("\\w{6,}");
Matcher m = p.matcher(str);
boolean b = m.matches();
System.out.println(" b = " + b);
}
public static void main(String[] args)
{
String str = "aaa111111111111111111111";
Pattern p = Pattern.compile("\\w{6,}");
Matcher m = p.matcher(str);
boolean b = m.matches();
System.out.println(" b = " + b);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货