Here you can find the source of copyInto(final List list, final double[] data)
public static Callable copyInto(final List list, final double[] data)
//package com.java2s; import java.util.concurrent.*; import java.util.List; public class Main { public static Callable copyInto(final List list, final double[] data) { Callable c = new Callable() { public Object call() throws Exception { for (int i = 0; i < data.length; i++) { list.add(data[i]);/*from w w w. jav a 2 s . com*/ } return list; } }; return c; } }