List<List<Integer>> result = new ArrayList<>();
int [][] dic= new int[result.size()][];
for(int i = 0; i < result.size(); i++){
dic[i] = new int[result.get(i).size()];
for(int j = 0; j < dic[i].length; j++)
dic[i][j] = result.get(i).get(j);
}
List<List<Integer>>转二维数组
最新推荐文章于 2023-05-26 17:28:44 发布