Java Array Copy arraycopy(T[] src, int srcPos, T[] dst, int len)

Here you can find the source of arraycopy(T[] src, int srcPos, T[] dst, int len)

Description

arraycopy

License

Open Source License

Declaration

public static <T> void arraycopy(T[] src, int srcPos, T[] dst, int len) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static <T> void arraycopy(T[] src, int srcPos, T[] dst, int len) {
        for (int i = 0; i < len; ++i)
            dst[i] = src[srcPos + i];//from  www.j  a v a  2  s.c  o  m
    }
}

Related

  1. arraycopy(String[] src)
  2. arrayCopy(String[][] src, int src_position, String[][] dst, int dst_position, int length)
  3. arraycopy(T[] a)
  4. arrayCopy(T[] objs)
  5. arraycopy(T[] src, int srcPos, T[] dest, int destPos, int length)
  6. arrayCopy(T[] x)
  7. arrayCopyAndAddEntry(T[] base, T extra)
  8. arraycopyAndInsertInt(final int[] src, final int idx, final int value)
  9. arrayCopyToNull(T[] source, int sourceOffset, T[] destination, int destinationOffset)