public static Object[] mergeNativeArrays(Object[] dst,Object[] src,int dstPosition,boolean doPowerOf2){
  if (dstPosition < 0)   dstPosition=dst.length;
  Object[] result=resizeIfNeeded(dst,dstPosition + src.length,doPowerOf2);
  System.arraycopy(src,0,result,dstPosition,src.length);
  return result;
}

public static Object [ ] mergeNativeArrays ( Object [ ] dst , Object [ ] src , int dstPosition , boolean doPowerOf2 ) { if ( dstPosition < 0 ) dstPosition = dst . length ; Object [ ] result = resizeIfNeeded ( dst , dstPosition + src . length , doPowerOf2 ) ; System . arraycopy ( src , 0 , result , dstPosition , src . length ) ; return result ; }
this method efficiently copy the contents of one native array into another by using system . arraycopy ( )
