[Solved] what size of the array after Java String.split()?


You probably want

s.split("#", -1);

From the docs on the 2-arg form:

If n is non-positive then the pattern will be applied as many times as possible and the array can have any length. If n is zero then the pattern will be applied as many times as possible, the array can have any length, and trailing empty strings will be discarded.

solved what size of the array after Java String.split()?