Matriz de cambio de tamaño en Java

int [] basedata = new int[10];

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

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