Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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];
}
 
PREVIOUS NEXT
Tagged: #resize #array #java
ADD COMMENT
Topic
Name
1+1 =