I'm having a hard time understanding why this code returns an Object[] and not an int[] ("line" is a string I read off a file that looks like "1 2 3 4 5").
Arrays.stream(line.split(" ")).map(Integer::valueOf).collect(toList()).toArray()
I hope you can help me understand, thank you !