public class Test {
public static void main(String... args) {
Pattern p = Pattern.compile("a{3}b?c*");
Matcher m = p.matcher("aaab");
boolean b = m.matches();
System.out.println(b);
}
}
Asked in Programming & Design - 658 days ago
Tags: solve and explain the below code
Report abuseCategories