Java Array Copy getArrayCopy(String[] data)

Here you can find the source of getArrayCopy(String[] data)

Description

get Array Copy

License

Open Source License

Declaration

private static String[] getArrayCopy(String[] data) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2011, 2015 EclipseSource and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors://from  www  .j  a v a 2 s. co  m
 *    EclipseSource - initial API and implementation
 ******************************************************************************/

import java.util.Arrays;

public class Main {
    private static String[] getArrayCopy(String[] data) {
        return Arrays.copyOf(data, data.length);
    }
}

Related

  1. copyOf(T[] original)
  2. copyOfBytes(final byte[] bytes)
  3. copyOfRange(U[] original, int from, int to, Class newType)
  4. copyStringArray(String[] str, int startingPos)
  5. getArrayCopy(byte[] array)
  6. memcpy(Object dest, Object src, int length)