📅  最后修改于: 2022-03-11 14:52:11.114000             🧑  作者: Mango
// With streams map your object array to an int array
Integer intArray[] = Arrays.stream(objArray)
.map(Object::toString)
.map(Integer::valueOf)
.toArray(Integer[]::new);