SyntaxFix
Write A Post
Hire A Developer
Questions
In Java 8, you can use streams:
int[] spam = new int[] { 1, 2, 3 }; Arrays.stream(spam) .boxed() .collect(Collectors.toList());