Java, copy array A to array B from index point using for loop -
i trying copy entries in array questionlinefields new array called testquestions.
i trying copy indices [1 3] in questionlinefields not value of [0] index.
here current code:
string[] = new string[3]; string[] b = new string[]{"3","t","f","t"}; for(int i=0;i<3;i++){ a[i] = b[i+1]; } this not work , receive arrayindexoutofboundsexception. have seen thread. preferably use loop professor has requested use of loop.
thanks!
this system.arraycopy made for
i'd put more answer since @ school should figure out ;)
Comments
Post a Comment