SyntaxFix
Write A Post
Hire A Developer
Questions
Another workaround if you use apache commons-lang:
int[] spam = new int[] { 1, 2, 3 }; Arrays.asList(ArrayUtils.toObject(spam));
Where ArrayUtils.toObject converts int[] to Integer[]
int[]
Integer[]