There are easy solutions for concatenating two String[] or Integer[] in java by Streams. Since int[] is frequently used.
String[]
Integer[]
Streams
int[]
You can simply concatenate primitive(int) streams using IntStream.concat as:
int
IntStream.concat
int[] m = IntStream.concat(IntStream.of(c), IntStream.of(d)).toArray();