public static void copyWithGap(Object src,Object dst,int oldSize,int gapIndex){
  if (gapIndex > 0) {
    System.arraycopy(src,0,dst,0,gapIndex);
  }
  if (gapIndex < oldSize) {
    System.arraycopy(src,gapIndex,dst,gapIndex + 1,oldSize - gapIndex);
  }
}

public static void copyWithGap ( Object src , Object dst , int oldSize , int gapIndex ) { if ( gapIndex > 0 ) { System . arraycopy ( src , 0 , dst , 0 , gapIndex ) ; } if ( gapIndex < oldSize ) { System . arraycopy ( src , gapIndex , dst , gapIndex + 1 , oldSize - gapIndex ) ; } }
copy the elements of an array , with a gap .
