This question already has an answer here:
- Java String.split() sometimes giving blank strings 3 answers
- Why does split in Java 8 sometimes remove empty strings at start of result array? 3 answers
I have a string like "2020". When I split it with split(""). Then i checked its length. It is giving me 5 . But it should give 4. What is the reason
Aucun commentaire:
Enregistrer un commentaire