class ArrayUtils {

	public static int[] copyOf(int[] in, int length) {
		int[] out = new int[length];
		if (length > 0) {
			System.arraycopy(in, 0, out, 0, Math.min(length, in.length));
		}

		return out;
	}

}