📜  从数组 java 代码示例创建流

📅  最后修改于: 2022-03-11 14:52:34.603000             🧑  作者: Mango

代码示例2
// creating stream from array
int[] arr = {1, 2, 3, 4};

Arrays.stream(arr);
Stream.of(arr); // same as above