Answers for "resize array in java"

1

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];
}
Posted by: Guest on December-06-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language