Here you can find the source of transform(final List
public static int[] transform(final List<Integer> l)
//package com.java2s; /**/*from ww w . j ava 2 s. c o m*/ * Copyright? 2014-2016 LIST (Luxembourg Institute of Science and Technology), all right reserved. * Authorship : Olivier PARISOT, Yoanne DIDRY * Licensed under GNU General Public License version 3 */ import java.util.*; public class Main { public static int[] transform(final List<Integer> l) { final int[] array = new int[l.size()]; for (int i = 0; i < l.size(); i++) array[i] = l.get(i).intValue(); return array; } }