Created
October 31, 2016 11:38
-
-
Save ykws/79e478a1decd36a3553c9281cdf9c329 to your computer and use it in GitHub Desktop.
String#split return empty array with empty values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String str = ",,,"; | |
String[] arrays = str.split(","); | |
# arrays => [] | |
# arrays.length => 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment