Skip to content

Instantly share code, notes, and snippets.

@64lines
Last active August 5, 2016 05:06
Show Gist options
  • Select an option

  • Save 64lines/12f458639e5c22340c99 to your computer and use it in GitHub Desktop.

Select an option

Save 64lines/12f458639e5c22340c99 to your computer and use it in GitHub Desktop.
[JAVA] - Parse List of Longs to arrays
List<Long> items = new ArrayList<>();
for (String item : items)
{
negItems.add(Longs.tryParse(item));
}
return Longs.toArray(negItems);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment