When splitting "TEST/TEST/".split("/")
I will get a string array of length = 2
.
How can I split getting length = 3
with elements ["TEST", "TEST", ""]
, thus the last element being empty string?
(I want to achieve this with native Java, and with regards to performance as the split has to take place on a few million rows one after the other).