public static void main(String[] args) {
int[] a = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int[] b = { 2, 3, 4, 5, 6, 7, 8, 9, 10 };
int[] c = new int[a.length];
int index = 0;
for (int i : a) {
for (int j : b) {
c[index] = i + j;
b = Arrays.copyOfRange(b, 1, b.length);
index = index + 1;
break;
}
}
System.out.println(Arrays.toString(c));//[3, 5, 7, 9, 11, 13, 15, 17, 19]
}