Here you can find the source of cloneList(List
public static List<double[]> cloneList(List<double[]> xData)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public static List<double[]> cloneList(List<double[]> xData) { List<double[]> result = new ArrayList<double[]>(); for (double[] currArr : xData) { result.add(currArr.clone()); }/*from w w w . j av a2 s . c om*/ return result; } }