Copying Elements from One Array to Another System.arraycopy(src, 0, dst, 0, Math.min( src.length, dst.length));