Hi Folks,
In page 503 of the Kathy Sierra book, there is the following sample code:
With this invocation:
java SplitTest "ab5 ccc 45 @" "\d"
It gives the following result:
count 4
>ab<
> ccc <
><
> @<
My question is, how can the count be 4? My understanding is that the value being assigned to the token array should be the number of elements left after the digits are removed. Hope someone can advise. Thank you.