Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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