📜  对象到数组 java 代码示例

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

代码示例1
// With streams map your object array to an int array
Integer intArray[] = Arrays.stream(objArray)
                .map(Object::toString)
                .map(Integer::valueOf)
                .toArray(Integer[]::new);