使用java将数据从一维arraylist复制到二维arraylist

时间:2011-01-03 10:58:34

标签: java arraylist

从一维arraylist(在找到并移动每一行后不断刷新)中复制一行数据到二维arraylist的相应行?

1 个答案:

答案 0 :(得分:0)

List lst= new ArrayList();//considering your row
List<List> lst = new ArrayList<List>();//considering 2d list
lst.add(new ArrayList(lst));//adding row to it