使用Lambda表达式(自Java 8起):. int[] array = Arrays.asList(strings).stream().mapToInt(Integer::parseInt).toArray();. 1. ▽另一种方式:.
確定! 回上一頁