Java Array Copy arraycopy(T[] a)

Here you can find the source of arraycopy(T[] a)

Description

arraycopy

License

Apache License

Declaration

public static <T> T[] arraycopy(T[] a) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Arrays;

public class Main {
    public static <T> T[] arraycopy(T[] a) {

        return Arrays.copyOf(a, a.length);

    }//w  w w. j  a v  a 2s  . c o  m
}

Related

  1. arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
  2. arrayCopy(Object[] source, Object[] target, int size)
  3. arraycopy(Object[] src, int srcPos, Object[] dest, int destPos, int length)
  4. arraycopy(String[] src)
  5. arrayCopy(String[][] src, int src_position, String[][] dst, int dst_position, int length)
  6. arrayCopy(T[] objs)
  7. arraycopy(T[] src, int srcPos, T[] dest, int destPos, int length)
  8. arraycopy(T[] src, int srcPos, T[] dst, int len)
  9. arrayCopy(T[] x)