rezise an array in java code example
Example: resize array in 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];
}
int [] basedata = new int[10];
int [] original = basedata;
basedata = new int[12];
for(int i = 0; i < original.length; i++){
basedata[i] = original[i];
}