📅  最后修改于: 2022-03-11 14:52:38.958000             🧑  作者: Mango
int[] arr = Stream.of(new String[]{"1", "2", "3"})
.mapToInt(Integer::parseInt).toArray();
System.out.println(Arrays.toString(arr));