Połącz dwie tablice Java
//USing Apache Commons Lang library.
int[] both = ArrayUtils.addAll(first, second);
Spotless Shark
//USing Apache Commons Lang library.
int[] both = ArrayUtils.addAll(first, second);
Object[] arrThree = new Object[arrTwo.length + arrOne.length];
int index = arrTwo.length;
for (int i = 0; i < arrTwo.length; i++) {
arrThree[i] = arrTwo[i];
}
for (int i = 0; i < arrOne.length; i++) {
arrThree[i + index] = arrOne[i];
}