The best way to convert a Stream to an array in Java 8 is by using constructor reference i.e. toArray(int[]::new), which will convert Stream to an int array.
確定! 回上一頁