Ask Questions and Get Answers from the Experts.

solve and explain the below code  

Additional Details

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  

Answer now
Report abuse
Rate this : 0 0

Ask a Question

Ask now

Categories

© 2010 Ask Questions and Get Answers from the Experts. Ask Questions. Get Answers. All rights reserved

Search