+ 1
Array length after split
Why array length = 3 https://code.sololearn.com/cEzP6U3oM0rO/?ref=app
2 odpowiedzi
+ 1
I think it makes the rest of the string after the last dot which is "" as a place in the array
+ 1
Add this to the end of the code and see the result:
for (String s : a)
System.out.println (s.equals (""));
The output will be:
False
False
True