+ 2
import java.util.Arrays;
public class Program
{
public static void main(String[] args) {
int count = 0;
int[] a = {5, 7, 55};
int[] b = {4, 88, 5, 3, 66};
int[] c = Arrays.copyOf(a, a.length + b.length);
for(int x = a.length; x < c.length; x++){
c[x] = b[count];
count++;
}
System.out.print(Arrays.toString(c));
}
}
---------
Тебе осталось добавить через Scanner ввод данных в массивы и готово.



