我使用这个方法来连接3个字符串数组,但是当我获得最终数组时,它不会包含所有数据。
public String[] obtainFullArrayOfCounter(String first[], String second[], String third[]) {
String finalArray[] = new String[first.length + second.length + third.length];
System.arraycopy(finalArray, 0, finalArray, 0, first.length);
System.arraycopy(second, 0, finalArray, first.length, second.length);
System.arraycopy(third, 0, finalArray, first.length + second.length, third.length);
return finalArray;
}
感谢您的帮助