码迷,mamicode.com
首页 > 其他好文 > 详细

各种容器的初始化以及相互初始化

时间:2019-02-09 10:45:41      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:int   map   lis   容器   key   bsp   相互   result   初始化   

1D-->1D List:

new ArrayList<>(1D_list)

 

1D List添加 2D List 

    List<List<Integer>> result;

     result.add(new ArrayList<>(curResult))

 

set to list;

 new ArrayList < > (map.keySet());

 

各种容器的初始化以及相互初始化

标签:int   map   lis   容器   key   bsp   相互   result   初始化   

原文地址:https://www.cnblogs.com/keepAC/p/10357140.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!