Java tutorial
//package com.java2s; import java.util.List; public class Main { public static Integer[] change2Array(List<Integer> list) { Integer[] result = new Integer[list.size()]; for (int k = 0; k < list.size(); k++) { result[k] = list.get(k); } return result; } }