Here you can find the source of concatArrays(String[] array, String[] arrayToBeConcat)
public static String[] concatArrays(String[] array, String[] arrayToBeConcat)
//package com.java2s; /*L//from www.jav a2s . c om * Copyright Washington University in St. Louis * Copyright SemanticBits * Copyright Persistent Systems * Copyright Krishagni * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/catissue-migration-tool/LICENSE.txt for details. */ public class Main { public static String[] concatArrays(String[] array, String[] arrayToBeConcat) { String[] concatedArray = new String[array.length + arrayToBeConcat.length]; System.arraycopy(array, 0, concatedArray, 0, array.length); System.arraycopy(arrayToBeConcat, 0, concatedArray, array.length, arrayToBeConcat.length); return concatedArray; } }