toArray(int[]::new) will return an int[] from IntStream. Now, let's see some code examples of converting a Java 8 Stream to an array.
確定! 回上一頁