Java的Vector的二维数组的定义及初始化

map=new Vector<Vector<Integer>>(m);
for(int i=0;i<m;++i) {
Vector<Integer>temp=new Vector<Integer>();
for(int j=0;j<m;++j) {
temp.add(-1);
}
map.add(temp);
}

posted @ 2019-10-03 21:56  pycodego  阅读(5054)  评论(0编辑  收藏  举报