📜  在java代码示例中调整数组大小

📅  最后修改于: 2022-03-11 14:52:17.544000             🧑  作者: Mango

代码示例1
int [] basedata = new int[10];

int [] original = basedata;
basedata = new int[12];

for(int i = 0; i < original.length; i++){
  basedata[i] = original[i];
}