|
Tue
28
Dec '04
|
|
A little quiz - what’s the output of this little code snippet?
Pattern p = Pattern.compile("aaa");
System.out.println(p.matcher("bbbaaabbb").matches());
System.out.println(p.matcher("bbbaaabbb").replaceAll("ccc"));