Skip to content

Instantly share code, notes, and snippets.

@ykws
Created October 31, 2016 11:46
Show Gist options
  • Save ykws/ada9b9ab749bcd7f827c13af1ec8de4f to your computer and use it in GitHub Desktop.
Save ykws/ada9b9ab749bcd7f827c13af1ec8de4f to your computer and use it in GitHub Desktop.
Caution Java String#split ref: http://qiita.com/ykws/items/0251cdba4be882468b06
String str = ",,,";
String[] arrays = str.split(",", -1)
# arrays => ["", "", "", "", ""]
# arrays.length => 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment