public static void main(String[] args) { resultArray = new int[firstArray.length + secondArray.length]; for (int i = 0; i < firstArray.length; i++) { resultArray[i] = firstArray[i]; } for (int i = 0; i < secondArray.length; i++) { resultArray[i + firstArray.length] = secondArray[i]; } for (int i = 0; i < resultArray.length; i++) { System.out.print(resultArray[i] + ", "); } } }