开发者

Copy data from one dimensional arraylist to 2 dimensional arraylist using java

开发者 https://www.devze.com 2023-02-02 08:59 出处:网络
Copy a row of data from a one dimensional arraylist (which keeps getting refreshed after every row is found and moved) to the correspondin开发者_运维知识库g row of a two dimensional arraylist?List lst

Copy a row of data from a one dimensional arraylist (which keeps getting refreshed after every row is found and moved) to the correspondin开发者_运维知识库g row of a two dimensional arraylist?


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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号