Here you can find the source of toIntegerArray(final List
@Deprecated public static int[] toIntegerArray(final List<Integer> list)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { @Deprecated public static int[] toIntegerArray(final List<Integer> list) { int[] array = new int[list.size()]; for (int i = 0; i < list.size(); i++) { array[i] = list.get(i);/*ww w.java 2 s .c om*/ } return array; } }