Last active
August 5, 2016 05:06
-
-
Save 64lines/12f458639e5c22340c99 to your computer and use it in GitHub Desktop.
[JAVA] - Parse List of Longs to arrays
This file contains hidden or 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
| 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