Here you can find the source of getArrayCopy(String[] data)
private static String[] getArrayCopy(String[] data)
//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); } }