Hi,
Would anyone be able to explain me why in this code:
String s = "aaaaaaaaabbb";
String[] arr = s.split("a{3}");
System.out.println(arr.length + "");
The output is 4, rather than 3
Thanks
Katrin
Katrin
SCJP 5.0, SCWCD, SCBCD, Oracle Certified Master Enterprise Architect