You can try Streams in Java 8:- int[] array = list.stream().mapToInt(i->i).toArray();. Example: int[] toIntArray(List<Integer> list) {.
確定! 回上一頁