Here you can find the source of mergeString(String[] str1, String[] str2)
public static String[] mergeString(String[] str1, String[] str2)
//package com.java2s; //License from project: Apache License public class Main { public static String[] mergeString(String[] str1, String[] str2) { String[] merged = new String[str1.length + str2.length]; for (int i = 0; i < str1.length; i++) { merged[i] = str1[i];// w w w.j a va2s . c o m } for (int i = 0; i < str2.length; i++) { merged[i + str1.length] = str2[0]; } return merged; } }