stream流的一些妙用 2022-12-05 0 Comments Word Count: 29(words) Read Count: 1(minutes) 求数组最小值 1Arrays.stream(baseCosts).min().getAsInt() 装箱 Arrays.stream(arr).boxed().toArray(Integer[]::new) 拆箱 Arrays.stream(integers).mapToInt(Integer::valueOf).toArray()