参考原文:https://www.cnblogs.com/ysloong/p/6431127.html
String str1[] = {"aa","bb","cc"}
String[] str2 = {"FF","dd","hh"};
if (null != dateStrList && dateStrList.size() > 0) {
str2 = new String[dateStrList.size()];
for (int i = 0; i < dateStrList.size(); i++) {
map.put(25 + i, dateStrList.get(i));
str2[i] = "attendanceVo.day" + dateStrList.get(i);
}
}
int a = str1.length;
int b = str2.length;
str1 = Arrays.copyOf(str1, a + b);// 数组扩容
System.arraycopy(str2, 0, str1, a, b);