Java Array Copy copyArray(int[] ar)

Here you can find the source of copyArray(int[] ar)

Description

copy Array

License

Apache License

Declaration

public static int[] copyArray(int[] ar) 

Method Source Code

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

public class Main {
    public static int[] copyArray(int[] ar) {
        int[] r = new int[ar.length];
        System.arraycopy(ar, 0, r, 0, ar.length);
        return r;
    }/*from  w  ww .  ja  va 2  s  .  c  o  m*/
}

Related

  1. copyArray(byte[] out, byte[] in, int idx)
  2. copyArray(double[] a)
  3. copyArray(double[] array)
  4. copyArray(double[] src, double[] dest, int len)
  5. copyArray(double[][] d)
  6. copyArray(int[] inArr, int[] outArr)
  7. copyArray(int[][] arr)
  8. copyArray(int[][] links, int rowNum, int columnNum)
  9. copyArray(int[][] src)