Here you can find the source of copyIntArray(List
Parameter | Description |
---|---|
li | a parameter |
public final static List<int[]> copyIntArray(List<int[]> li)
//package com.java2s; import java.util.ArrayList; import java.util.List; public class Main { /**// w ww.j av a2 s .c o m * * @param li * @return deep copy. */ public final static List<int[]> copyIntArray(List<int[]> li) { List<int[]> liC = new ArrayList<int[]>(li.size()); for (int[] a : li) { int[] c = new int[a.length]; System.arraycopy(a, 0, c, 0, a.length); liC.add(c); } return liC; } }