Java Array Copy copy(T[] array)

Here you can find the source of copy(T[] array)

Description

copy

License

Open Source License

Declaration

public static <T> T[] copy(T[] array) 

Method Source Code

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

import java.util.Arrays;

public class Main {

    public static <T> T[] copy(T[] array) {
        return Arrays.copyOf(array, array.length);
    }/* w  w w . ja  va  2  s.co m*/
}

Related

  1. copy(int[] array)
  2. copy(int[][] input)
  3. copy(long[] array)
  4. copy(long[] v)
  5. copy(T[] array)
  6. copy2DArray(char[][] original)
  7. copy5DArray(char[][][][][] original)
  8. copyAndFillOf(T[] original, int newLength, T padding)
  9. copyArray()