1. 程式人生 > >各種容器的初始化以及相互初始化

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

integer list bsp new res 容器 初始 初始化 nbsp

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());

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