The way to create the new array with the correct size is
int [] arraynew = new int [a.length + b.length];
after that you need a for loop to populate it.
The way to create the new array with the correct size is
int [] arraynew = new int [a.length + b.length];
after that you need a for loop to populate it.