Skip to content

Instantly share code, notes, and snippets.

@AliAsadi
Created October 7, 2018 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AliAsadi/dc96262097b6614d78b89482714d1bce to your computer and use it in GitHub Desktop.
Save AliAsadi/dc96262097b6614d78b89482714d1bce to your computer and use it in GitHub Desktop.
private static String longArrayToString(long[] values) {
StringBuffer sb = new StringBuffer();
if (values != null) {
for (int i = 0; i < values.length - 1; i++) {
sb.append(values[i]).append(DELIMITER);
}
sb.append(values[values.length - 1]);
}
return sb.toString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment