Java tutorial
//package com.java2s; import java.util.Arrays; public class Main { public static String[] copyArray(String[] arr) { String[] arrNew = Arrays.copyOf(arr, arr.length); return arrNew; } }