Java Array Duplicate arrayDuplicate(byte[] in)

Here you can find the source of arrayDuplicate(byte[] in)

Description

array Duplicate

License

Open Source License

Declaration

static public byte[] arrayDuplicate(byte[] in) 

Method Source Code

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

public class Main {
    static public byte[] arrayDuplicate(byte[] in) {
        byte[] out = new byte[in.length];
        arrayCopy(out, 0, in);/*from   ww  w  . j  ava 2 s .  com*/
        return out;
    }

    static public void arrayCopy(byte[] dest, int offset, byte[] in) {
        System.arraycopy(in, 0, dest, offset, in.length);
    }
}

Related

  1. addNoDuplicate(String[] array, String target)
  2. deleteDuplicatedPages(int[] pages)
  3. duplicateArrayEntries(String[] inputArr, int numDuplicates)
  4. eraseDuplicatedValue(String[] srcArr)
  5. hasDuplicates(final T[] array)