Java tutorial
//package com.java2s; public class Main { public static void copy(final byte[] src, final int srcPos, final byte[] dst, final int dstPos, final int length) { System.arraycopy(src, srcPos, dst, dstPos, length); // Burn in hell, creators of methods that take Object where they shouldn't! } }